X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/bd7221ae5450e14e9641e01e0c2890a8f018ddb4..af29b004d5aa086b28097b73c5efae233bf9b6e3:/IkiWiki/Plugin/cvs.pm 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/;