summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-10-17 02:43:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-10-17 02:43:20 +0000
commit8d476ded8e15360ccd962fc3094957432bb635c3 (patch)
treef12232415bde9810e917c3ef1a93a7fd75e7a902
parente7bd6769dffb622e88f7336dace675d55af900d1 (diff)
downloadphp-git-8d476ded8e15360ccd962fc3094957432bb635c3.tar.gz
MFH: Further URL validations in safe_mode/open_basedir configs.
-rw-r--r--ext/curl/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 2c0865eabf..191b894728 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -75,7 +75,7 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
RETURN_FALSE; \
} \
\
- if (php_check_open_basedir(tmp_url->path TSRMLS_CC) || \
+ if (tmp_url->query || php_check_open_basedir(tmp_url->path TSRMLS_CC) || \
(PG(safe_mode) && !php_checkuid(tmp_url->path, "rb+", CHECKUID_CHECK_MODE_PARAM)) \
) { \
php_url_free(tmp_url); \