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.

Including:
weblib: MDL-15963: Backporting the addition of font-family and text-decoration while i'm here for consistency.
  • Loading branch information...
1 parent 157deca commit 023bf0157945ad6ac47b01fe77365b832348a485 ericmerrill committed Dec 3, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
4 lib/weblib.php
@@ -85,8 +85,8 @@
* @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

0 comments on commit 023bf01

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