summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-04-16 17:45:55 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-04-16 17:45:55 +0000
commit0f2418d4702c874fc4dddc84efbeaab966c5f7b8 (patch)
treed9a94666db5b2446b97fb932347f0929057ead29
parent687ebaa97760ea803010af7a57a5048c8d1775a6 (diff)
downloadphp-git-0f2418d4702c874fc4dddc84efbeaab966c5f7b8.tar.gz
MFH: fixed typo
-rw-r--r--ext/standard/http_fopen_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index 9fe3876d56..f5563d6500 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -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)