com php-src: Bug #63162 - parse_url does not matches password component: ext/standard/url.c
| From: | Stanislav Malyshev | Date: | Mon, 01 Oct 2012 02:20:37 +0000 |
| Subject: | com php-src: Bug #63162 - parse_url does not matches password component: ext/standard/url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70279@lists.php.net to get a copy of this message | ||
Commit: 491b1efacb995cd857f01f3b2d1b7d70a2384e46
Author: husman <husman85@gamersdig.com> Wed, 26 Sep 2012 23:50:30 -0400
Committer: Stanislav Malyshev <stas@php.net> Sun, 30 Sep 2012 19:20:37 -0700
Parents: f879e1162fe5b0c017983e9690aa70a5f17251c4
Branches: PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=491b1efacb995cd857f01f3b2d1b7d70a2384e46
Log:
Bug #63162 - parse_url does not matches password component
Bugs:
https://bugs.php.net/63162
Changed paths:
M ext/standard/url.c
Diff:
diff --git a/ext/standard/url.c b/ext/standard/url.c
index 44a5680..c159322 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;
}