diff options
author | intrigeri <intrigeri@boum.org> | 2013-12-31 01:27:21 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2013-12-31 01:47:10 +0000 |
commit | d52774dd458059ba1442fdac1daf648dc4f228de (patch) | |
tree | 291d5896a90f847975a82d702d7f6dd0673b6ab9 /IkiWiki | |
parent | 5351cdd0f0b1475775d09b342e244f79626d7acd (diff) | |
download | ikiwiki-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.pm | 4 |
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; |