aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-02-02 14:11:15 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-02-02 14:11:15 -0500
commit91b477c08789142667aad8e3c737e9b9a4d4ce64 (patch)
treeecdac70b4f36ff48c6b34c006172fde4c45738fa /IkiWiki
parent0f3f809a45f25e6a32ff505c5d8d3da43be77abb (diff)
downloadikiwiki-91b477c08789142667aad8e3c737e9b9a4d4ce64.tar
ikiwiki-91b477c08789142667aad8e3c737e9b9a4d4ce64.tar.gz
Fix diffurl links (cvsweb expects unescaped '/').
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/cvs.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index bccab3159..841aec914 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -314,7 +314,9 @@ sub rcs_recentchanges ($) {
$oldrev =~ s/INITIAL/0/;
$newrev =~ s/\(DEAD\)//;
my $diffurl = defined $config{diffurl} ? $config{diffurl} : "";
- my $epage = uri_escape_utf8($page);
+ my $epage = join('/',
+ map { uri_escape_utf8($_) } split('/', $page)
+ );
$diffurl=~s/\[\[file\]\]/$epage/g;
$diffurl=~s/\[\[r1\]\]/$oldrev/g;
$diffurl=~s/\[\[r2\]\]/$newrev/g;