X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f6bd81db15340bd1bfa69e98f377099036308b7b..1a4ba6cbcfb842f198d9b9215d51cf0b2af4241f:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index d1b65cd51..3802559a5 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -621,6 +621,9 @@ sub userlink ($) { #{{{ return "$oiduser"; } else { + eval q{use CGI 'escapeHTML'}; + error($@) if $@; + return htmllink("", "", escapeHTML( length $config{userdir} ? $config{userdir}."/".$user : $user ), noimageinline => 1); @@ -1244,6 +1247,10 @@ sub pagespec_translate ($) { #{{{ } } + if (! length $code) { + $code=0; + } + return eval 'sub { my $page=shift; '.$code.' }'; } #}}}