From: poltawski Date: Mon, 7 Jan 2008 12:21:06 +0000 (+0000) Subject: MDL-6529 - strip slashes when displaying category added success messsage X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1c8ec30d95eebf0030f0d03d3b338beafe27b795;p=moodle.git MDL-6529 - strip slashes when displaying category added success messsage merged from MOODLE_19_STABLE --- 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;