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

Including:
weblib: MDL-15963: Backporting the addition of font-family and text-decoration while i'm here for consistency.
This commit is contained in:
ericmerrill
2008-12-03 16:54:08 +00:00
parent 3ac1efe7fc
commit 29249d96dc
+2 -2
View File
@@ -90,8 +90,8 @@ $ALLOWED_TAGS =
* @global string $ALLOWED_PROTOCOLS
*/
$ALLOWED_PROTOCOLS = array('http', 'https', 'ftp', 'news', 'mailto', 'rtsp', 'teamspeak', 'gopher', 'mms',
'color', 'callto', 'cursor', 'text-align', 'font-size', 'font-weight', 'font-style',
'border', 'margin', 'padding', 'background'); // CSS as well to get through kses
'color', 'callto', 'cursor', 'text-align', 'font-size', 'font-weight', 'font-style', 'font-family',
'border', 'margin', 'padding', 'background', 'background-color', 'text-decoration'); // CSS as well to get through kses
/// Functions