--- rdiff.orig 2003-08-09 01:16:02.000000000 -0600 +++ rdiff 2004-07-26 17:26:03.000000000 -0600 @@ -128,6 +128,7 @@ my $tmpl = "", $text = "", $diff = ""; my $rev1 = $query->param( "rev1" ); my $rev2 = $query->param( "rev2" ); + my $attachment = $query->param( "filename" ); my $maxrev= 1; my $i = $maxrev, $j = $maxrev; my $revTitle1 = "", $revTitle2 = ""; @@ -147,9 +148,9 @@ my( $before, $difftmpl, $after) = split( /%REPEAT%/, $tmpl); - my $topicExists = &TWiki::Store::topicExists( $webName, $topic ); + my $topicExists = &TWiki::Store::topicExists( $webName, $topic, $attachment ); if( $topicExists ) { - $maxrev = &TWiki::Store::getRevisionNumber( $webName, $topic ); + $maxrev = &TWiki::Store::getRevisionNumber($webName, $topic ); $maxrev =~ s/r?1\.//go; # cut 'r' and major if( ! $rev1 ) { $rev1 = 0; } if( ! $rev2 ) { $rev2 = 0; } @@ -201,7 +202,7 @@ $diff =~ s/%REVTITLE1%/r1\.$r1/go; $rInfo = getRevInfo( $webName, $r1, $topic, 1 ); $diff =~ s/%REVINFO1%/$rInfo/go; - $text = &TWiki::Store::getRevisionDiff( $webName, $topic, "1.$r2", "1.$r1" ); + $text = &TWiki::Store::getRevisionDiff( $webName, $topic, $attachment, "1.$r2", "1.$r1" ); $text = renderRevisionDiff( $text, $topic ); $diff =~ s/%TEXT%/$text/go; $diff =~ s|( ?) *\n?|$1|gois; # remove tags (PTh 06 Nov 2000) @@ -266,4 +267,5 @@ $after =~ s|( ?) *\n?|$1|gois; # remove tags (PTh 06 Nov 2000) print $after; + }