summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-03-21 14:21:55 -0400
committerJoey Hess <joey@kitenet.net>2011-03-21 14:21:55 -0400
commit26eb86d9036f8191db0c86031afe648dd6ba4ebc (patch)
treef651b8ffae41bbd40390129918ac34fc330ac8c0 /IkiWiki
parentb02d3746e1585b9cd2ce176e3e475eadf6eaa293 (diff)
Avoid escaping / characters in filenames when building the cgiurl, as this confuses eg, cvsweb.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm2
1 files changed, 1 insertions, 1 deletions
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++;