Learnpath: Enable HTML presentation of title of LP in LP list -refs BT#19939

pull/4275/head
NicoDucou 3 years ago
parent e56aee5f7b
commit 9ad315af4d
  1. 1
      main/install/configuration.dist.php
  2. 8
      main/lp/lp_list.php

@ -484,6 +484,7 @@ ALTER TABLE c_lp CHANGE name name LONGTEXT NOT NULL;
ALTER TABLE c_lp_item CHANGE title title LONGTEXT NOT NULL;
--
*/
// This option will not remove tags when presenting LP list so it might be a source of security vulnerability.
// $_configuration['save_titles_as_html'] = false;
// Show the full toolbar set to all CKEditor
//$_configuration['full_ckeditor_toolbar_set'] = false;

@ -358,8 +358,12 @@ foreach ($categories as $item) {
$oddclass = 'row_odd';
}
$url_start_lp = 'lp_controller.php?'.$cidReq.'&action=view&lp_id='.$id;
$name = trim(strip_tags(Security::remove_XSS($details['lp_name'])));
$url_start_lp = 'lp_controller.php?'.$cidReq.'&action=view&lp_id='.$id;
if (api_get_configuration_value('save_titles_as_html')) {
$name = trim(Security::remove_XSS($details['lp_name']));
} else {
$name = trim(strip_tags(Security::remove_XSS($details['lp_name'])));
}
$extra = null;
if ($is_allowed_to_edit) {

Loading…
Cancel
Save