summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r--ext/standard/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c
index 43c47b38d9..d425e985c7 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -138,7 +138,7 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
p++;
}
- if ((*p) == '\0' || *p == '/') {
+ if ((*p == '\0' || *p == '/') && (p - e) < 7) {
goto parse_port;
}