From 5b1cf21a350ee6e3278b5279fbda9cd26ff8550d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 21 Dec 2008 15:24:42 +0000 Subject: [PATCH] beautify_urlpath: if path already starts with ./, don't add another ./ --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index 97c835cf6..6747a3ba4 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -951,7 +951,7 @@ sub beautify_urlpath ($) { # Ensure url is not an empty link, and if necessary, # add ./ to avoid colon confusion. - if ($url !~ /^\// && $url !~ /^\.\.\//) { + if ($url !~ /^\// && $url !~ /^\.\.?\//) { $url="./$url"; } -- 2.26.2