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 49f2b7f5c..fc4439967 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -51,7 +51,10 @@ verify_uri_segment(const char *p)
{
const char *q;
- if (*p == 0 || *p == '/' || *p == '.')
+ unsigned dots = 0;
+ while (*p == '.')
+ ++p;
+ if (dots <= 2 && (*p == 0 || *p == '/'))
return NULL;
q = strchr(p + 1, '/');