summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/url.c b/utils/url.c
index 7600a1375..256cdc4ba 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -37,7 +37,7 @@ void url_init(void)
"(\\?([^#[:space:]]*))?(#([^[:space:]]*))?"
"[[:space:]]*$", REG_EXTENDED);
regcomp_wrapper(&url_up_re,
- "/([^/]|[.][^./]|[^./][.]|[^/][^/][^/]+)/[.][.](/|$)",
+ "/([^/]|[.][^./]|[^./][.]|[^/][^/][^/]+)?/[.][.](/|$)",
REG_EXTENDED);
regcomp_wrapper(&url_nice_re,
"^([^.]{0,4}[.])?([^.][^.][.])?([^/?&;.=]*)"