beautify_urlpath: if path already starts with ./, don't add another ./

master
Simon McVittie 2008-12-21 15:24:42 +00:00
parent 0844bd0b15
commit 5b1cf21a35
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}