From: foobar Date: Sun, 27 Nov 2005 20:10:15 +0000 (+0000) Subject: MF51: improve open_basedir check X-Git-Tag: RELEASE_2_0_2~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a1d459892740b3e2c0719840e3569ca651c541d;p=php MF51: improve open_basedir check --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index b1af8f0afe..6b84c99361 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -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; \ \