aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/uri.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uri.c b/src/uri.c
index fc4439967..f4d590a60 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -52,8 +52,11 @@ verify_uri_segment(const char *p)
const char *q;
unsigned dots = 0;
- while (*p == '.')
+ while (*p == '.') {
++p;
+ ++dots;
+ }
+
if (dots <= 2 && (*p == 0 || *p == '/'))
return NULL;