X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d8e4b51a41a9507584d56946d0eae0e5cef6d6f5..14172959d4255c21ca772d92bfd546cf397c7716:/IkiWiki/Plugin/cvs.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm index 1a432c052..71566d212 100644 --- a/IkiWiki/Plugin/cvs.pm +++ b/IkiWiki/Plugin/cvs.pm @@ -436,8 +436,9 @@ sub rcs_recentchanges ($) { return @ret; } -sub rcs_diff ($) { +sub rcs_diff ($;$) { my $rev=IkiWiki::possibly_foolish_untaint(int(shift)); + my $maxlines=shift; local $CWD = $config{srcdir}; @@ -459,7 +460,9 @@ sub rcs_diff ($) { } sub rcs_getctime ($) { - my $file=$config{srcdir}."/".shift(); + my $file=shift; + + local $CWD = $config{srcdir}; my $cvs_log_infoline=qr/^date: (.+);\s+author/;