diff --git a/plugins/phorum/htmlpurifier.php b/plugins/phorum/htmlpurifier.php index 9f780aaf..1fb2212e 100644 --- a/plugins/phorum/htmlpurifier.php +++ b/plugins/phorum/htmlpurifier.php @@ -47,6 +47,11 @@ function phorum_htmlpurifier_format($data) continue; } + if (isset($_GET['purge'])) { + // purge the cache + unset($message['meta']['body_cache']); + } + if ( isset($message['meta']['body_cache']) && isset($message['meta']['body_cache_serial']) && @@ -201,3 +206,14 @@ function phorum_htmlpurifier_before_editor($message) { return $message; } +function phorum_htmlpurifier_editor_after_subject() { + if (!empty($GLOBALS['PHORUM']['mod_htmlpurifier']['wysiwyg'])) return; + ?> + HTML input is on. Make sure you escape all HTML and + angled-brackets with &lt; and &gt; (you can also use CDATA + tags, simply wrap the suspect text with +<![CDATA[text]]>. Paragraphs will only be applied to +double-spaces; single-spaces will not generate <br> tags. +