summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-08-11 13:01:52 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2011-08-11 13:01:52 (GMT)
commit78c823067f66de77bb3424b523dc5d7bf242d46a (patch)
treea2d57c302fb64179fc2124c1cc8cf203de6517af /ext/standard/url.c
parente780e7bfb96cac4e7de6ce7639a85ab86edac232 (diff)
downloadphp-78c823067f66de77bb3424b523dc5d7bf242d46a.tar.gz
Fixed bug #55399 (parse_url() incorrectly treats ':' as a valid path)
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r--ext/standard/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c
index e516f15..0a1903a 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -197,6 +197,10 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
efree(ret);
return NULL;
}
+ } else if (p == pp && *pp == '\0') {
+ STR_FREE(ret->scheme);
+ efree(ret);
+ return NULL;
} else {
goto just_path;
}