mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Off by ! in the url control char check for file:/// urls
This commit is contained in:
parent
1286d9e266
commit
5b9ec4828f
@ -173,7 +173,7 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
|
||||
php_curl_ret(__ret); \
|
||||
} \
|
||||
\
|
||||
if (php_memnstr(str, tmp_url->path, strlen(tmp_url->path), str + len)) { \
|
||||
if (!php_memnstr(str, tmp_url->path, strlen(tmp_url->path), str + len)) { \
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "URL '%s' contains unencoded control characters.", str); \
|
||||
php_url_free(tmp_url); \
|
||||
php_curl_ret(__ret); \
|
||||
|
Loading…
Reference in New Issue
Block a user