]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6529 - strip slashes when displaying category added success messsage
authorpoltawski <poltawski>
Mon, 7 Jan 2008 12:21:06 +0000 (12:21 +0000)
committerpoltawski <poltawski>
Mon, 7 Jan 2008 12:21:06 +0000 (12:21 +0000)
merged from MOODLE_19_STABLE

course/editcategory.php

index 49cacfe824dde6fc35cf6bd80f94eb2490d5d239..026e368c997f2c308b1198d33c942d3a06f8a7ab 100644 (file)
@@ -72,7 +72,7 @@ if ($mform->is_cancelled()){
         } else {
             $newcategory->context = get_context_instance(CONTEXT_COURSECAT, $newcategory->id);
             mark_context_dirty($newcategory->context->path);
-            redirect('index.php?categoryedit=on', get_string('categoryadded', null, $newcategory->name));
+            redirect('index.php?categoryedit=on', get_string('categoryadded', null, stripslashes($newcategory->name)));
         }
     } elseif (has_capability('moodle/category:update', $context)) {
         $newcategory->id = $category->id;