summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-08-23 17:16:17 +0000
committerPierre Joye <pajoye@php.net>2010-08-23 17:16:17 +0000
commitb9d73bb9101fd15d9fc7dcadad6f7420b2d75882 (patch)
tree2c0b12de683228ae72e7256394fe2206529f4b27
parenta6c5363f05f423434be5ed5263b4315decbf25a5 (diff)
downloadphp-git-b9d73bb9101fd15d9fc7dcadad6f7420b2d75882.tar.gz
- WS
-rw-r--r--ext/standard/http_fopen_wrapper.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index ca76027ff2..f283cc4935 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -742,20 +742,20 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
goto out;
}
-#define CHECK_FOR_CNTRL_CHARS(val) { \
- if (val) { \
- unsigned char *s, *e; \
- int l; \
- l = php_url_decode(val, strlen(val)); \
- s = (unsigned char*)val; e = s + l; \
- while (s < e) { \
- if (iscntrl(*s)) { \
- php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path); \
- goto out; \
- } \
- s++; \
- } \
- } \
+#define CHECK_FOR_CNTRL_CHARS(val) { \
+ if (val) { \
+ unsigned char *s, *e; \
+ int l; \
+ l = php_url_decode(val, strlen(val)); \
+ s = (unsigned char*)val; e = s + l; \
+ while (s < e) { \
+ if (iscntrl(*s)) { \
+ php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path); \
+ goto out; \
+ } \
+ s++; \
+ } \
+ } \
}
/* check for control characters in login, password & path */
if (strncasecmp(new_path, "http://", sizeof("http://") - 1) || strncasecmp(new_path, "https://", sizeof("https://") - 1)) {