]> granicus.if.org Git - php/commitdiff
Fixed a typo in the previous patch.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 16 Apr 2006 17:40:33 +0000 (17:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 16 Apr 2006 17:40:33 +0000 (17:40 +0000)
# Thanks Tony

ext/standard/http_fopen_wrapper.c

index 771c9bc20d8adcb38fa3acffc920cdcf9f1c3e03..146b9e51b5d9177267dcab7d943f43b5ab01e52a 100644 (file)
@@ -639,7 +639,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
        }       \
 }      \
                        /* check for control characters in login, password & path */
-                       if (strncasecmp(newpath, "http://", sizeof("http://") - 1) || strncasecmp(newpath, "https://", sizeof("https://") - 1) {
+                       if (strncasecmp(new_path, "http://", sizeof("http://") - 1) || strncasecmp(new_path, "https://", sizeof("https://") - 1)) {
                                CHECK_FOR_CNTRL_CHARS(resource->user)
                                CHECK_FOR_CNTRL_CHARS(resource->pass)
                                CHECK_FOR_CNTRL_CHARS(resource->path)