]> granicus.if.org Git - php/commitdiff
MFH: fixed typo
authorIlia Alshanetsky <iliaa@php.net>
Sun, 16 Apr 2006 17:45:55 +0000 (17:45 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 16 Apr 2006 17:45:55 +0000 (17:45 +0000)
ext/standard/http_fopen_wrapper.c

index 9fe3876d5667299f0aefb279407ab5804c7ec6f5..f5563d65001122cd4e389e615ab16879f54c8746 100644 (file)
@@ -503,7 +503,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)