From: Sara Golemon Date: Tue, 27 Apr 2004 19:28:11 +0000 (+0000) Subject: Don't strip off those []s, it'll only create problems in wrappers and elsewhere. X-Git-Tag: RELEASE_0_1~347 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1335bc8fb88e82398cfdefa0c8a12830291c4fa4;p=php Don't strip off those []s, it'll only create problems in wrappers and elsewhere. --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 69dd45d7d9..1fbda1cf68 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -231,11 +231,6 @@ PHPAPI php_url *php_url_parse(char const *str) p = e; } - if (*s == '[' && *(p-1) == ']') { - s++; - p--; - } - /* check if we have a valid host, if we don't reject the string as url */ if ((p-s) < 1) { STR_FREE(ret->scheme);