]> granicus.if.org Git - php/commitdiff
MFH 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:21 +0000 (19:28 +0000)
committerSara Golemon <pollita@php.net>
Tue, 27 Apr 2004 19:28:21 +0000 (19:28 +0000)
ext/standard/url.c

index 06d5b2a6787f7343bb5286a8517f45b1377cbd3d..d19d686d99fd3ff5964e71547b6eef16e9e85c1e 100644 (file)
@@ -225,11 +225,6 @@ PHPAPI php_url *php_url_parse(char *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);