From c0fa5540c3a090ce9ece27d9d2e9520d5374ffdd Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 14 Nov 2003 17:18:15 +0000 Subject: [PATCH] No need to strip slashes in a filter ... --- mod/glossary/dynalink.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mod/glossary/dynalink.php b/mod/glossary/dynalink.php index f16c2b2dd3..d146706fe7 100644 --- a/mod/glossary/dynalink.php +++ b/mod/glossary/dynalink.php @@ -62,9 +62,10 @@ $title = strip_tags("$glossary->name: " . get_string("category","glossary"). " $category->name"); $href_tag_begin = "wwwroot/mod/glossary/view.php?id=$cm->id&tab=1&cat=$concept->id\">"; } else { - $title = strip_tags("$glossary->name: $concept->concept"); - $href_tag_begin = "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 = "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); @@ -165,7 +166,7 @@ } } } - return stripslashes($text); + return $text; } function glossary_sort_entries_by_lenght ( $entry0, $entry1 ) { -- 2.39.5