Off by ! in the url control char check for file:/// urls

This commit is contained in:
Rasmus Lerdorf 2007-03-09 01:20:34 +00:00
parent 1286d9e266
commit 5b9ec4828f

View File

@ -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); \