summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-01-27 16:37:34 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-01-27 16:37:34 +0000
commit42155f60282a7c6514e70756b22d7f384277b75b (patch)
tree92c49297ed2cb811d98cd42dab7087ffe4683e78 /ext/standard/url.c
parent6ffd569410137736618c3fca132d94b26126262c (diff)
downloadphp-git-42155f60282a7c6514e70756b22d7f384277b75b.tar.gz
Fixed bug #31705 (parse_url() does not recognize http://foo.com#bar)
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r--ext/standard/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c
index 558c105dbd..1c2091f9fe 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -182,6 +182,8 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
if (!(p = memchr(s, '/', (ue - s)))) {
if ((p = memchr(s, '?', (ue - s)))) {
e = p;
+ } else if ((p = memchr(s, '#', (ue - s)))) {
+ e = p;
}
} else {
e = p;