From: ericmerrill Date: Wed, 3 Dec 2008 16:31:49 +0000 (+0000) Subject: weblib: MDL-16293: background-color attribute stripped from html. Adding 'background... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=62097c91ed24c779f4c7b4ffa909fa3954382cc8;p=moodle.git weblib: MDL-16293: background-color attribute stripped from html. Adding 'background-color' attribute to $ALLOWED_PROTOCOLS array so kses doesn't drop it. --- diff --git a/lib/weblib.php b/lib/weblib.php index ca2b28f7b4..7a5a0b7fe9 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -102,7 +102,7 @@ $ALLOWED_TAGS = */ $ALLOWED_PROTOCOLS = array('http', 'https', 'ftp', 'news', 'mailto', 'rtsp', 'teamspeak', 'gopher', 'mms', 'color', 'callto', 'cursor', 'text-align', 'font-size', 'font-weight', 'font-style', 'font-family', - 'border', 'margin', 'padding', 'background', 'text-decoration'); // CSS as well to get through kses + 'border', 'margin', 'padding', 'background', 'background-color', 'text-decoration'); // CSS as well to get through kses /// Functions