check_canchange: report invalid filenames as intended
Instead of logging "bad file name %s" and attempting to call the (string) filename as a subroutine, actually do the intended sprintf operation.master
parent
7586f5165e
commit
88da55c5d1
|
@ -1826,7 +1826,7 @@ sub check_canchange (@) {
|
|||
$file=possibly_foolish_untaint($file);
|
||||
if (! defined $file || ! length $file ||
|
||||
file_pruned($file)) {
|
||||
error(gettext("bad file name %s"), $file);
|
||||
error(sprintf(gettext("bad file name %s"), $file));
|
||||
}
|
||||
|
||||
my $type=pagetype($file);
|
||||
|
|
Loading…
Reference in New Issue