]> granicus.if.org Git - php/commitdiff
Improved safe_mode/open_basedir check.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 27 Nov 2005 20:07:36 +0000 (20:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 27 Nov 2005 20:07:36 +0000 (20:07 +0000)
ext/curl/interface.c

index 75e4b5ba685eb18d75e1455a1953eb810e914758..f512fa591ebec0f765a8d81a70b5b8bc03186cee 100644 (file)
@@ -110,7 +110,7 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
 
 #define PHP_CURL_CHECK_OPEN_BASEDIR(str, len)                                                                                                  \
        if (((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) &&                                                \
-           strncasecmp(str, "file://", sizeof("file://") - 1) == 0)                                                            \
+           strncasecmp(str, "file:", sizeof("file:") - 1) == 0)                                                                \
        {                                                                                                                                                                                       \
                php_url *tmp_url;                                                                                                                                               \
                                                                                                                                                                                                \