Skip to content
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 2235d76 commit bc738a326f47811e0c6c9d7c8ec2346f176dc066 ericmerrill committed Dec 3, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
2 lib/weblib.php
@@ -93,7 +93,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 bc738a3

Please sign in to comment.
Something went wrong with that request. Please try again.