From 2254dc67640ad54672bac3f2992221a9c433d117 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 3 Jul 2009 16:05:30 +0000 Subject: Allowing selected style attributes in htmlawed. git-svn-id: https://code.elgg.org/elgg/trunk@3383 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/htmlawed/start.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/htmlawed/start.php b/mod/htmlawed/start.php index 1b8351af2..c4dcb40e4 100644 --- a/mod/htmlawed/start.php +++ b/mod/htmlawed/start.php @@ -21,8 +21,9 @@ $CONFIG->htmlawed_config = array( // seems to handle about everything we need. 'safe' => true, - 'deny_attribute' => 'style', - 'schemes' => '*:http,https,ftp,news,mailto,rtsp,teamspeak,gopher,mms,callto' + //'deny_attribute' => 'style', + 'schemes' => '*: http,https,ftp,news,mailto,rtsp,teamspeak,gopher,mms,callto;' + . 'style: color,cursor,text-align,font-size,font-weight,font-style,border,margin,padding,float' ); register_plugin_hook('validate', 'input', 'htmlawed_filter_tags', 1); -- cgit v1.2.3