X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/57bba4dac132a06729eeec809f5e1a5adf829806..9e891f538e48b0c686430889583ed24cf767c0ea:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 35c62ce3e..1522feb1e 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -353,7 +353,7 @@ sub cgi_editpage ($$) { #{{{ if (defined $type && length $type && $hooks{htmlize}{$type}) { $type=possibly_foolish_untaint($type); } - elsif (defined $from) { + elsif (defined $from && exists $pagesources{$from}) { # favor the type of linking page $type=pagetype($pagesources{$from}); }