X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/6fb0226a55d2e1eaa72981c393f4221802c3d193..4f58ad1c102a5e43ba86f3ca217e0ba560a5f83b:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index 2815a5c4c..207bf3079 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1043,7 +1043,9 @@ sub preprocess ($$$;$$) { #{{{ my $prefix=shift; my $command=shift; my $params=shift; - if (length $escape) { + $params="" if ! defined $params; + + f (length $escape) { return "[[$prefix$command $params]]"; } elsif (exists $hooks{preprocess}{$command}) {