X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a79e97e3f4bd6ac0b5f196782121938a92cfc1bf..11fc28970b329334d88d3667e5b55e0d57e353ab:/IkiWiki/Render.pm diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 0fe20c64f..0889fed62 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -287,13 +287,13 @@ sub find_src_files () { wanted => sub { my $file=decode_utf8($_); $file=~s/^\Q$config{srcdir}\E\/?//; + return if -l $_ || -d _ || ! length $file; my $page = pagename($file); if (! exists $pagesources{$page} && file_pruned($file)) { $File::Find::prune=1; return; } - return if -l $_ || -d _ || ! length $file; my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint if (! defined $f) { @@ -314,13 +314,13 @@ sub find_src_files () { wanted => sub { my $file=decode_utf8($_); $file=~s/^\Q$dir\E\/?//; + return if -l $_ || -d _ || ! length $file; my $page=pagename($file); if (! exists $pagesources{$page} && file_pruned($file)) { $File::Find::prune=1; return; } - return if -l $_ || -d _ || ! length $file; my ($f) = $file =~ /$config{wiki_file_regexp}/; # untaint if (! defined $f) {