From 1c8ec30d95eebf0030f0d03d3b338beafe27b795 Mon Sep 17 00:00:00 2001 From: poltawski Date: Mon, 7 Jan 2008 12:21:06 +0000 Subject: [PATCH] MDL-6529 - strip slashes when displaying category added success messsage merged from MOODLE_19_STABLE --- course/editcategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/editcategory.php b/course/editcategory.php index 49cacfe824..026e368c99 100644 --- a/course/editcategory.php +++ b/course/editcategory.php @@ -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; -- 2.39.5