aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/uri.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uri.c b/src/uri.c
index fc443996..f4d590a6 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;