Browse Source

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

experimental/new_apache_hooks
Ilia Alshanetsky 24 years ago
parent
commit
a643ae656a
  1. 2
      main/safe_mode.c

2
main/safe_mode.c

@ -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;
} }

Loading…
Cancel
Save