Added some more protocols to the allowed list

This commit is contained in:
moodler 2004-08-21 13:31:49 +00:00
parent 6a3c93f484
commit ef132aa077

View file

@ -790,7 +790,7 @@ function cleanAttributes2($htmlTag){
$elem = $matches[2]; //the element name $elem = $matches[2]; //the element name
$attrlist = $matches[3]; // the list of attributes as a string $attrlist = $matches[3]; // the list of attributes as a string
$allowed_protocols = array('http', 'https', 'ftp', 'news', 'mailto'); $allowed_protocols = array('http', 'https', 'ftp', 'news', 'mailto', 'teamspeak', 'gopher');
$attrArray = kses_hair($attrlist, $allowed_protocols) ; $attrArray = kses_hair($attrlist, $allowed_protocols) ;
$attStr = ''; $attStr = '';