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
Joey Hess 2008-07-11 09:52:17 -04:00
parent d5de560f50
commit 810a355308
1 changed files with 1 additions and 6 deletions

View File

@ -539,12 +539,7 @@ sub beautify_url ($) { #{{{
if ($config{usedirs}) {
$url =~ s!/index.$config{htmlext}$!/!;
}
# Ensure url is not an empty link, and
# if it's relative, make that explicit to avoid colon confusion.
if ($url !~ /\//) {
$url="./$url";
}
$url =~ s!^$!./!; # Browsers don't like empty links...
return $url;
} #}}}