From: Pierre Joye Date: Mon, 23 Aug 2010 17:16:17 +0000 (+0000) Subject: - WS X-Git-Tag: php-5.3.4RC1~319 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9d73bb9101fd15d9fc7dcadad6f7420b2d75882;p=php - WS --- 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)) {