Fix "&" char in course title see BT#13222

pull/2487/head
jmontoyaa 7 years ago
parent fa8e9ad60c
commit 08b6562544
  1. 1
      main/admin/course_edit.php
  2. 3
      main/inc/lib/add_course.lib.inc.php

@ -369,6 +369,7 @@ if ($form->validate()) {
Database::query($sql);
$title = str_replace('&', '&', $title);
$params = [
'course_language' => $course_language,
'title' => $title,

@ -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'];

Loading…
Cancel
Save