]> git.mjollnir.org Git - moodle.git/commitdiff
Strip tags from Resource names before filtering bug 1418
authormoodler <moodler>
Mon, 17 May 2004 16:04:05 +0000 (16:04 +0000)
committermoodler <moodler>
Mon, 17 May 2004 16:04:05 +0000 (16:04 +0000)
mod/resource/filter.php

index de41f488d7fdd1329e27f1c137c560e999538abb..c330a852076ea36f56b4c8e3ecbd20915365283a 100644 (file)
@@ -63,7 +63,7 @@
     
     function resource_link_names($text,$name,$href_tag_begin,$href_tag_end = "</a>") {
 
-        $list_of_words_cp = $name;
+        $list_of_words_cp = strip_tags($name);
 
         $list_of_words_cp = trim($list_of_words_cp,'|');