Permalink
Browse files

weblib: MDL-16293: background-color attribute stripped from html. Add…

…ing 'background-color' attribute to $ALLOWED_PROTOCOLS array so kses doesn't drop it.
  • Loading branch information...
1 parent 2e9cb9d commit bde30ae513ac51723e486bb6f55876234b511410 ericmerrill committed Dec 3, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -101,7 +101,7 @@
*/
$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

0 comments on commit bde30ae

Please sign in to comment.