diff --git a/main/admin/course_edit.php b/main/admin/course_edit.php index b69a12ebfe..542163fce2 100755 --- a/main/admin/course_edit.php +++ b/main/admin/course_edit.php @@ -369,6 +369,7 @@ if ($form->validate()) { Database::query($sql); + $title = str_replace('&', '&', $title); $params = [ 'course_language' => $course_language, 'title' => $title, diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index 1172d7f543..fbb585ef87 100755 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -1159,8 +1159,9 @@ class AddCourse public static function register_course($params) { global $error_msg, $firstExpirationDelay; - $title = $params['title']; + // Fix amp + $title = str_replace('&', '&', $title); $code = $params['code']; $visual_code = $params['visual_code']; $directory = $params['directory'];