Browse Source

Don't strip off those []s, it'll only create problems in wrappers and elsewhere.

PHP-5.0
Sara Golemon 22 years ago
parent
commit
1335bc8fb8
  1. 5
      ext/standard/url.c

5
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);

Loading…
Cancel
Save