Revert "Fix a bug with links to pages whose names contained colons."
This reverts commit e25c3a0a7c
.
I didn't think that through far enough; beautify_url may be called on full
urls, which don't start with "/"!
Conflicts:
debian/changelog
master
parent
d5de560f50
commit
810a355308
|
@ -539,12 +539,7 @@ sub beautify_url ($) { #{{{
|
||||||
if ($config{usedirs}) {
|
if ($config{usedirs}) {
|
||||||
$url =~ s!/index.$config{htmlext}$!/!;
|
$url =~ s!/index.$config{htmlext}$!/!;
|
||||||
}
|
}
|
||||||
|
$url =~ s!^$!./!; # Browsers don't like empty links...
|
||||||
# Ensure url is not an empty link, and
|
|
||||||
# if it's relative, make that explicit to avoid colon confusion.
|
|
||||||
if ($url !~ /\//) {
|
|
||||||
$url="./$url";
|
|
||||||
}
|
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
Loading…
Reference in New Issue