]> git.mjollnir.org Git - moodle.git/commitdiff
Added some more protocols to the allowed list
authormoodler <moodler>
Sat, 21 Aug 2004 13:31:49 +0000 (13:31 +0000)
committermoodler <moodler>
Sat, 21 Aug 2004 13:31:49 +0000 (13:31 +0000)
lib/weblib.php

index 73e1112675634fe7a45de1e558e24f4c19cdeda8..5ad29a6823001b56ed90fe7f93e3afe27638de08 100644 (file)
@@ -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 = '';