From 26eb86d9036f8191db0c86031afe648dd6ba4ebc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 21 Mar 2011 14:21:55 -0400 Subject: Avoid escaping / characters in filenames when building the cgiurl, as this confuses eg, cvsweb. --- IkiWiki/Render.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 8e8336b99..5288abc6d 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -93,7 +93,7 @@ sub genpage ($$) { } if (defined $config{historyurl} && length $config{historyurl}) { my $u=$config{historyurl}; - my $p=uri_escape_utf8($pagesources{$page}); + my $p=uri_escape_utf8($pagesources{$page}, '^A-Za-z0-9\-\._~/'); $u=~s/\[\[file\]\]/$p/g; $template->param(historyurl => $u); $actions++; -- cgit v1.2.3