From: willcast Date: Tue, 21 Oct 2003 16:30:12 +0000 (+0000) Subject: - Fixed bug the dealing with concepts that contains slashes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=20853eabc780c77b56178dc06f7881a7b77d0791;p=moodle.git - Fixed bug the dealing with concepts that contains slashes --- diff --git a/mod/glossary/approve.php b/mod/glossary/approve.php index a2d95be8cc..d65c9e31e7 100644 --- a/mod/glossary/approve.php +++ b/mod/glossary/approve.php @@ -33,6 +33,6 @@ } else { add_to_log($course->id, "glossary", "approve entry", "showentry.php?id=$cm->id&eid=$eid", "$eid"); } - redirect("view.php?id=$cm->id&tab=$tab&l=ALL"); + redirect("view.php?id=$cm->id&tab=$tab"); die; ?> \ No newline at end of file diff --git a/mod/glossary/dynalink.php b/mod/glossary/dynalink.php index e1ada8ed96..c6b71eeec4 100644 --- a/mod/glossary/dynalink.php +++ b/mod/glossary/dynalink.php @@ -62,6 +62,7 @@ } function glossary_link_concepts($text,$concept,$href_tag_begin,$href_tag_end = "",$casesensitive,$fullmatch) { + $concept = str_replace("/", "\/", $concept); $list_of_words_cp = $concept; if ($list_of_words_cp{0}=="|") {