summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-21 15:24:42 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-21 15:24:42 +0000
commit5b1cf21a350ee6e3278b5279fbda9cd26ff8550d (patch)
tree8c5d7a6a1c8409f9335b7a543eee71688992973e /IkiWiki.pm
parent0844bd0b1567404243d95e616d3c7526e922822d (diff)
beautify_urlpath: if path already starts with ./, don't add another ./
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm2
1 files changed, 1 insertions, 1 deletions
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";
}