beautify_urlpath: if path already starts with ./, don't add another ./
parent
0844bd0b15
commit
5b1cf21a35
|
@ -951,7 +951,7 @@ sub beautify_urlpath ($) {
|
||||||
|
|
||||||
# Ensure url is not an empty link, and if necessary,
|
# Ensure url is not an empty link, and if necessary,
|
||||||
# add ./ to avoid colon confusion.
|
# add ./ to avoid colon confusion.
|
||||||
if ($url !~ /^\// && $url !~ /^\.\.\//) {
|
if ($url !~ /^\// && $url !~ /^\.\.?\//) {
|
||||||
$url="./$url";
|
$url="./$url";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue