|
|
|
@ -181,6 +181,10 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length) |
|
|
|
p = e + 1; |
|
|
|
pp = p; |
|
|
|
|
|
|
|
if (*s == '/' && *(s+1) == '/') { /* relative-scheme URL */ |
|
|
|
s += 2; |
|
|
|
} |
|
|
|
|
|
|
|
while (pp-p < 6 && isdigit(*pp)) { |
|
|
|
pp++; |
|
|
|
} |
|
|
|
@ -201,10 +205,6 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length) |
|
|
|
STR_FREE(ret->scheme); |
|
|
|
efree(ret); |
|
|
|
return NULL; |
|
|
|
} else if (*s == '/' && *(s+1) == '/') { /* relative-scheme URL */ |
|
|
|
s += 2; |
|
|
|
} else { |
|
|
|
goto just_path; |
|
|
|
} |
|
|
|
} else if (*s == '/' && *(s+1) == '/') { /* relative-scheme URL */ |
|
|
|
s += 2; |
|
|
|
|