Skip to content

Commit 3fdcf7c

Browse files
committed
MFH: Improved safe_mode/open_basedir check (Ilia)
1 parent af49241 commit 3fdcf7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
7272
RETURN_FALSE; \
7373
} \
7474
\
75-
if (tmp_url->query || php_check_open_basedir(tmp_url->path TSRMLS_CC) || \
75+
if (tmp_url->query || tmp_url->fragment || php_check_open_basedir(tmp_url->path TSRMLS_CC) || \
7676
(PG(safe_mode) && !php_checkuid(tmp_url->path, "rb+", CHECKUID_CHECK_MODE_PARAM)) \
7777
) { \
7878
php_url_free(tmp_url); \

0 commit comments

Comments
 (0)