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...
ericmerrill
ericmerrill committed Dec 3, 2008
1 parent 2aa3bae commit 62097c91ed24c779f4c7b4ffa909fa3954382cc8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -102,7 +102,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 62097c9

Please sign in to comment.