From 8e5e6b44371798f1d94dc9c5d0948d9b0911a68a Mon Sep 17 00:00:00 2001 From: lincolnwebs Date: Fri, 2 Nov 2012 12:45:12 -0400 Subject: [PATCH] Allow HtmLawed blocked element override --- plugins/HtmLawed/class.htmlawed.plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/HtmLawed/class.htmlawed.plugin.php b/plugins/HtmLawed/class.htmlawed.plugin.php index 657aed0db98..8c5348c45bf 100644 --- a/plugins/HtmLawed/class.htmlawed.plugin.php +++ b/plugins/HtmLawed/class.htmlawed.plugin.php @@ -36,13 +36,14 @@ public function __construct() { /// METHODS /// public function Format($Html) { + $Elements = C('Plugins.HtmLawed.BlockedElements', '*-applet-form-input-textarea-iframe-script-style'); // object, embed allowed $Config = array( 'anti_link_spam' => array('`.`', ''), 'comment' => 1, 'cdata' => 3, 'css_expression' => 1, 'deny_attribute' => 'on*', - 'elements' => '*-applet-form-input-textarea-iframe-script-style', // object, embed allowed + 'elements' => $Elements, 'keep_bad' => 0, 'schemes' => 'classid:clsid; href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; style: nil; *:file, http, https', // clsid allowed in class 'valid_xhtml' => 0,