Browse Source

MF51: improve open_basedir check

migration/RELEASE_1_0_0
foobar 21 years ago
parent
commit
0a1d459892
  1. 2
      ext/curl/interface.c

2
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; \
\

Loading…
Cancel
Save