From: Simon McVittie Date: Sun, 21 Dec 2008 15:24:42 +0000 (+0000) Subject: beautify_urlpath: if path already starts with ./, don't add another ./ X-Git-Tag: 2.71~10^2~4 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/5b1cf21a350ee6e3278b5279fbda9cd26ff8550d?hp=0844bd0b1567404243d95e616d3c7526e922822d beautify_urlpath: if path already starts with ./, don't add another ./ --- 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"; }