diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-04-16 17:40:33 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-04-16 17:40:33 +0000 |
commit | 74672b86b48cb243bb5d3a0ddfeab66d0a9b5c85 (patch) | |
tree | 333d655b1d52bae2c64437f78cf9f39adfa073e7 | |
parent | 79d8f014da33ac2f28407311d42fae5583f84acc (diff) | |
download | php-git-74672b86b48cb243bb5d3a0ddfeab66d0a9b5c85.tar.gz |
Fixed a typo in the previous patch.
# Thanks Tony
-rw-r--r-- | ext/standard/http_fopen_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 771c9bc20d..146b9e51b5 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -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) |