Make https:// be exempt from safe_mode checks, just like http:// & ftp:// are.

This commit is contained in:
Ilia Alshanetsky 2002-08-16 03:52:37 +00:00
parent b284497eaf
commit a643ae656a

View file

@ -73,7 +73,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode)
* If given filepath is a URL, allow - safe mode stuff * If given filepath is a URL, allow - safe mode stuff
* related to URL's is checked in individual functions * related to URL's is checked in individual functions
*/ */
if (!strncasecmp(filename,"http://", 7) || !strncasecmp(filename,"ftp://", 6)) { if (!strncasecmp(filename,"http://", 7) || !strncasecmp(filename,"ftp://", 6) || !strncasecmp(filename,"https://", 8)) {
return 1; return 1;
} }