From 45b26feebb4ebb6e9c76567373bd48337569ca2d Mon Sep 17 00:00:00 2001
From: nicolasconnault <nicolasconnault>
Date: Wed, 7 Mar 2007 01:25:43 +0000
Subject: [PATCH] MDL-2974 - Corrected notification of correctly entered new
 category with multilang display

---
 course/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/course/index.php b/course/index.php
index 338d3bf7d2..3985b13cfb 100644
--- a/course/index.php
+++ b/course/index.php
@@ -103,7 +103,7 @@
     if ($form = data_submitted() and confirm_sesskey() and has_capability('moodle/category:create', $context)) {
         if (!empty($form->addcategory)) {
             unset($newcategory);
-            $newcategory->name = $form->addcategory;
+            $newcategory->name = stripslashes_safe($form->addcategory);
             $newcategory->sortorder = 999;
             if (!insert_record('course_categories', $newcategory)) {
                 notify("Could not insert the new category '" . format_string($newcategory->name) . "'");
-- 
2.39.5