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

index faba70a1dddab0b1af5ac09ec23df612ab2ac918..11d2eac9d73366bd481e449fd9d1515b07b178a0 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);                                                                                    \