From 1335bc8fb88e82398cfdefa0c8a12830291c4fa4 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 27 Apr 2004 19:28:11 +0000 Subject: [PATCH] Don't strip off those []s, it'll only create problems in wrappers and elsewhere. --- ext/standard/url.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/standard/url.c b/ext/standard/url.c index 69dd45d7d91..1fbda1cf68b 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);