diff options
author | Simon McVittie <smcv@debian.org> | 2017-01-09 14:27:56 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-01-09 14:27:56 +0000 |
commit | 88da55c5d186efaa3ca802881c3cb1533f9c8145 (patch) | |
tree | ee20378dff5802d25aa711a6113be76b17a179b7 /IkiWiki.pm | |
parent | 7586f5165e36ca010d14ad87202ad923ca63144b (diff) | |
download | ikiwiki-88da55c5d186efaa3ca802881c3cb1533f9c8145.tar ikiwiki-88da55c5d186efaa3ca802881c3cb1533f9c8145.tar.gz |
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.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index fa71f4791..6aa49229a 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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); |