aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-03 16:05:30 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-03 16:05:30 +0000
commit2254dc67640ad54672bac3f2992221a9c433d117 (patch)
treec423d5c2bb1eac34c0f640c25583b568854efea5 /mod
parentf0b7a73b5a9fea9077611e0df503dfd06c414d5b (diff)
downloadelgg-2254dc67640ad54672bac3f2992221a9c433d117.tar.gz
elgg-2254dc67640ad54672bac3f2992221a9c433d117.tar.bz2
Allowing selected style attributes in htmlawed.
git-svn-id: https://code.elgg.org/elgg/trunk@3383 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/htmlawed/start.php5
1 files changed, 3 insertions, 2 deletions
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);