]> granicus.if.org Git - php/commitdiff
Make https:// be exempt from safe_mode checks, just like http:// & ftp:// are.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 16 Aug 2002 03:52:37 +0000 (03:52 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 16 Aug 2002 03:52:37 +0000 (03:52 +0000)
main/safe_mode.c

index 9dd394b513fb4c929529fa92ac3a7518d931804e..a56094b33f27cd79f9e3c6faae7ce7fc19878eeb 100644 (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
         * 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;
        }