From: Rasmus Lerdorf Date: Fri, 9 Mar 2007 01:22:47 +0000 (+0000) Subject: MFB Off by ! in file:/// control char check X-Git-Tag: RELEASE_1_0_1~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdd22775fe127ebfcdc582b7c9f46ceff4b99379;p=php MFB Off by ! in file:/// control char check --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index faba70a1dd..11d2eac9d7 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -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); \