From: moodler <moodler> Date: Sat, 21 Aug 2004 13:31:49 +0000 (+0000) Subject: Added some more protocols to the allowed list X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ef132aa0772d363e5291807c9e57cca73ef026b3;p=moodle.git Added some more protocols to the allowed list --- diff --git a/lib/weblib.php b/lib/weblib.php index 73e1112675..5ad29a6823 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -790,7 +790,7 @@ function cleanAttributes2($htmlTag){ $elem = $matches[2]; //the element name $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) ; $attStr = '';