Index: TWiki.pm =================================================================== RCS file: /cvsroot/twiki/twiki/lib/TWiki.pm,v retrieving revision 1.307 diff -u -r1.307 TWiki.pm --- TWiki.pm 20 Mar 2004 10:51:33 -0000 1.307 +++ TWiki.pm 22 Mar 2004 13:13:57 -0000 @@ -1908,6 +1908,15 @@ $incfile =~ s/passwd//gi; # filter out passwd filename } + if( $incfile =~ m/\.(txt|html?)$/o ) { + # file from pub directory + my $fileName = "$pubDir/$theWeb/$theTopic/$incfile"; + if( -e $fileName ) { + # one of our attachments; read and return + return TWiki::Store::readFile( $fileName ); + } + } + # test for different usage my $fileName = "$dataDir/$theWeb/$incfile"; # TopicName.txt if( ! -e $fileName ) {