-sub verify_src_file ($$) {
- my $file=shift;
- my $dir=shift;
-
- return if -l $file || -d _;
- $file=~s/^\Q$dir\E\/?//;
- return if ! length $file;
- my $page = pagename($file);
- if (! exists $pagesources{$page} &&
- file_pruned($file)) {
- $File::Find::prune=1;
- return;
- }
-
- my ($file_untainted) = $file =~ /$config{wiki_file_regexp}/; # untaint
- if (! defined $file_untainted) {
- warn(sprintf(gettext("skipping bad filename %s"), $file)."\n");
- }
- return ($file_untainted, $page);
-}
-