diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 86645bb963..1bae44d748 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -369,9 +369,10 @@ class learnpath { $max_time_allowed = $this->escape_string(htmlentities($max_time_allowed)); if (empty($max_time_allowed)) { $max_time_allowed = 0; } - $title = htmlspecialchars($title, ENT_QUOTES, $charset); // TODO: To be checked for encoding problems. - $title = $this->escape_string(api_convert_encoding($title, $this->encoding, $charset)); - $description = $this->escape_string(api_convert_encoding($description, $this->encoding, $charset)); + //$title = htmlspecialchars($title, ENT_QUOTES, $charset); // TODO: To be checked for encoding problems. + //$title = $this->escape_string(api_convert_encoding($title, $this->encoding, $charset)); + $title = $this->escape_string(api_htmlentities($title, ENT_QUOTES, $charset)); + $description = $this->escape_string(api_htmlentities($description, ENT_QUOTES, $charset)); $sql_count = " SELECT COUNT(id) AS num FROM " . $tbl_lp_item . " diff --git a/main/newscorm/lp_stats.php b/main/newscorm/lp_stats.php index d67a4c690e..355fccf3fc 100644 --- a/main/newscorm/lp_stats.php +++ b/main/newscorm/lp_stats.php @@ -428,8 +428,6 @@ if (is_array($list) && count($list) > 0){ //$time = learnpathItem :: get_scorm_time('js', $subtotal_time); $scoIdentifier = $row['myid']; $title = $row['mytitle']; - $title = stripslashes(api_html_entity_decode($title, ENT_QUOTES, $dokeos_charset)); - // selecting the exe_id from stats attempts tables in order to look the max score value if ($origin != 'tracking') { @@ -583,8 +581,8 @@ if (is_array($list) && count($list) > 0){ if (!empty($export_csv)) { $temp = array (); - $temp[] = $title; - $temp[] = html_entity_decode($my_lesson_status); + $temp[] = api_html_entity_decode($title, ENT_QUOTES, $lp_charset); + $temp[] = api_html_entity_decode($my_lesson_status, ENT_QUOTES, $lp_charset); if ($row['item_type'] == 'quiz') { if (!api_is_allowed_to_edit() && $result_disabled_ext_all) {