]> granicus.if.org Git - php/commitdiff
Off by ! in the url control char check for file:/// urls
authorRasmus Lerdorf <rasmus@php.net>
Fri, 9 Mar 2007 01:20:34 +0000 (01:20 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 9 Mar 2007 01:20:34 +0000 (01:20 +0000)
ext/curl/interface.c

index 424c98012e074bfa99a812e4b330fff0be3ab0ca..cc27c1a11c22a0d98c130c4c48fa6dcc20f93960 100644 (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);                                                                                    \