From: Simon McVittie Date: Sun, 21 Dec 2008 15:07:36 +0000 (+0000) Subject: comments: linkify and preprocess preview with correct 'page' param X-Git-Tag: 2.71~10^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc66a00b90e00971156f1aea5678ce88d006e84d;p=ikiwiki.git comments: linkify and preprocess preview with correct 'page' param --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 644ef1be8..34bbafeed 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -432,8 +432,8 @@ sub sessioncgi ($$) { if ($form->submitted eq PREVIEW) { my $preview = IkiWiki::htmlize($location, $page, '_comment', - IkiWiki::linkify($page, $page, - IkiWiki::preprocess($page, $page, + IkiWiki::linkify($location, $page, + IkiWiki::preprocess($location, $page, IkiWiki::filter($location, $page, $content), 0, 1)));