weblib: MDL-16293: background-color attribute stripped from html. Adding 'background-color' attribute to $ALLOWED_PROTOCOLS array so kses doesn't drop it.

This commit is contained in:
ericmerrill
2008-12-03 16:31:49 +00:00
parent 2aa3baedc7
commit 62097c91ed
+1 -1
View File
@@ -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