Fix lp shortcut published option see BT#16238

Replace domesticate with database escape
pull/3035/head^2
Julio Montoya 7 years ago
parent 04a41fac60
commit dcef77ddae
  1. 5
      main/lp/learnpathList.class.php

@ -106,10 +106,7 @@ class LearnpathList
$isAllowToEdit = api_is_allowed_to_edit();
/** @var CLp $row */
foreach ($learningPaths as $row) {
// Use domesticate here instead of Database::escape_string because
// it prevents ' to be slashed and the input (done by learnpath.class.php::toggle_visibility())
// is done using domesticate()
$name = domesticate($row->getName());
$name = Database::escape_string($row->getName());
$link = 'lp/lp_controller.php?action=view&lp_id='.$row->getId().'&id_session='.$session_id;
$oldLink = 'newscorm/lp_controller.php?action=view&lp_id='.$row->getId().'&id_session='.$session_id;

Loading…
Cancel
Save