]> git.mjollnir.org Git - moodle.git/commitdiff
- Fixed bug the dealing with concepts that contains slashes
authorwillcast <willcast>
Tue, 21 Oct 2003 16:30:12 +0000 (16:30 +0000)
committerwillcast <willcast>
Tue, 21 Oct 2003 16:30:12 +0000 (16:30 +0000)
mod/glossary/approve.php
mod/glossary/dynalink.php

index a2d95be8ccd041dd06b4d947438a23ad88e0edfc..d65c9e31e793c9c8a018366f0748bbe2fa4145b8 100644 (file)
@@ -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
index e1ada8ed963d93053c84a418fad80c4b817e3578..c6b71eeec48d49430b0af087e7f8e64c5e7cf88a 100644 (file)
@@ -62,6 +62,7 @@
     }
     
     function glossary_link_concepts($text,$concept,$href_tag_begin,$href_tag_end = "</a>",$casesensitive,$fullmatch) {
+        $concept = str_replace("/", "\/", $concept);
         $list_of_words_cp = $concept;
 
         if ($list_of_words_cp{0}=="|") {