aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2013-12-31 01:27:21 +0000
committerintrigeri <intrigeri@boum.org>2013-12-31 01:47:10 +0000
commitd52774dd458059ba1442fdac1daf648dc4f228de (patch)
tree291d5896a90f847975a82d702d7f6dd0673b6ab9 /IkiWiki
parent5351cdd0f0b1475775d09b342e244f79626d7acd (diff)
downloadikiwiki-d52774dd458059ba1442fdac1daf648dc4f228de.tar
ikiwiki-d52774dd458059ba1442fdac1daf648dc4f228de.tar.gz
Do not UTF8-escape "/" in Git's diffurl: cgit does not support this.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/git.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 77c0678bc..9e67a36ee 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -660,7 +660,9 @@ sub rcs_recentchanges ($) {
my @pages;
foreach my $detail (@{ $ci->{'details'} }) {
my $file = $detail->{'file'};
- my $efile = uri_escape_utf8($file);
+ my $efile = join('/',
+ map { uri_escape_utf8($_) } split('/', $file)
+ );
my $diffurl = defined $config{'diffurl'} ? $config{'diffurl'} : "";
$diffurl =~ s/\[\[file\]\]/$efile/go;