diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2007-03-09 01:20:34 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2007-03-09 01:20:34 +0000 |
| commit | 5b9ec4828f0ca08175d4a153653ea33fb9403222 (patch) | |
| tree | 2bb7bb92365347302b29c4e4174fb7bd62d7e81a | |
| parent | 1286d9e266ab709c632280fad9850df27108decc (diff) | |
| download | php-git-5b9ec4828f0ca08175d4a153653ea33fb9403222.tar.gz | |
Off by ! in the url control char check for file:/// urls
| -rw-r--r-- | ext/curl/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 424c98012e..cc27c1a11c 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); \ |
