MFH: Improved safe_mode/open_basedir check (Ilia)

This commit is contained in:
Dmitry Stogov committed 2005-11-29 09:14:05 +00:00
1 parent 55e08048e0
commit af49241bc7
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,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; \
\