cvs: php-src(PHP_5_1) /ext/standard http_fopen_wrapper.c
| From: | Ilia Alshanetsky | Date: | Sun, 16 Apr 2006 17:40:34 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/standard http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37820@lists.php.net to get a copy of this message | ||
iliaa Sun Apr 16 17:40:34 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard http_fopen_wrapper.c
Log:
Fixed a typo in the previous patch.
# Thanks Tony
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/http_fopen_wrapper.c?r1=1.99.2.11&r2=1.99.2.12&diff_format=u
Index: php-src/ext/standard/http_fopen_wrapper.c
diff -u php-src/ext/standard/http_fopen_wrapper.c:1.99.2.11
php-src/ext/standard/http_fopen_wrapper.c:1.99.2.12
--- php-src/ext/standard/http_fopen_wrapper.c:1.99.2.11 Sun Apr 16 16:54:49 2006
+++ php-src/ext/standard/http_fopen_wrapper.c Sun Apr 16 17:40:33 2006
@@ -19,7 +19,7 @@
| Sara Golemon <pollita@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.99.2.11 2006/04/16 16:54:49 iliaa Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.99.2.12 2006/04/16 17:40:33 iliaa Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -639,7 +639,7 @@
} \
} \
/* 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)