]> git.mjollnir.org Git - moodle.git/commitdiff
No need to strip slashes in a filter ...
authormoodler <moodler>
Fri, 14 Nov 2003 17:18:15 +0000 (17:18 +0000)
committermoodler <moodler>
Fri, 14 Nov 2003 17:18:15 +0000 (17:18 +0000)
mod/glossary/dynalink.php

index f16c2b2dd31298c56b030254d4f3db93dad3a70e..d146706fe7a09cd6d0883b0475751cdfa24cd154 100644 (file)
                         $title = strip_tags("$glossary->name: " . get_string("category","glossary"). " $category->name");
                         $href_tag_begin = "<a class=\"autolink\" title=\"$title\" href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&tab=1&cat=$concept->id\">";
                     } else {
-                        $title = strip_tags("$glossary->name: $concept->concept");
-                        $href_tag_begin = "<a target=\"entry\" class=\"autolink\" title=\"$title\" href=\"$CFG->wwwroot/mod/glossary/showentry.php?courseid=$courseid&concept=".urlencode($concept->concept)."\" ".
-                             "onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$courseid\&concept=".urlencode($concept->concept)."', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">";
+                        $concepttitle = urlencode($concept->concept);
+                        $title = strip_tags("$glossary->name: $concepttitle");
+                        $href_tag_begin = "<a target=\"entry\" class=\"autolink\" title=\"$title\" href=\"$CFG->wwwroot/mod/glossary/showentry.php?courseid=$courseid&concept=$concepttitle\" ".
+                             "onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$courseid\&concept=$concepttitle', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">";
                     }
 
                     $currentconcept = str_replace("|", "\|", $concept->concept);
                 }
             }
         }
-        return stripslashes($text);
+        return $text;
     }
     
     function glossary_sort_entries_by_lenght ( $entry0, $entry1 ) {