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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user