diff options
author | husman <husman85@gamersdig.com> | 2012-09-26 23:50:30 -0400 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2012-09-30 19:20:37 -0700 |
commit | 491b1efacb995cd857f01f3b2d1b7d70a2384e46 (patch) | |
tree | 6af8b0c5421e5b20dbfe02f86eef9fac23b3363d | |
parent | f879e1162fe5b0c017983e9690aa70a5f17251c4 (diff) | |
download | php-git-491b1efacb995cd857f01f3b2d1b7d70a2384e46.tar.gz |
Bug #63162 - parse_url does not matches password component
-rw-r--r-- | ext/standard/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c index 44a568032b..c159322837 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -201,6 +201,8 @@ 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; } |