From: Ilia Alshanetsky Date: Sun, 16 Apr 2006 17:41:26 +0000 (+0000) Subject: MFB51: fixed typo X-Git-Tag: RELEASE_1_3~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78b81f25916e86c8e6b35b354e1976202e9bfa45;p=php MFB51: fixed typo --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 6232c16df9..3a0f7cbba5 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -691,7 +691,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)