]> granicus.if.org Git - php/commitdiff
Don't strip off those []s, it'll only create problems in wrappers and elsewhere.
authorSara Golemon <pollita@php.net>
Tue, 27 Apr 2004 19:28:11 +0000 (19:28 +0000)
committerSara Golemon <pollita@php.net>
Tue, 27 Apr 2004 19:28:11 +0000 (19:28 +0000)
ext/standard/url.c

index 69dd45d7d9161529353f71150d2d2b84bb0ba1f4..1fbda1cf68b4529bf1d7fd41d7ee0bec64334b5d 100644 (file)
@@ -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);