From 7cc3614f4c3069a80d6eea2af254ac969a996dc5 Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Tue, 5 May 2009 17:09:03 +0200 Subject: [PATCH] [svn r20330] Fixed apostrophes problem in Learning path - see FS#4143 (by rvelasquez) --- main/newscorm/learnpath.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 9801add1aa..5ab7871612 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -4664,7 +4664,8 @@ class learnpath { $title=''; for($i = 0; $i < count($arrLP); $i++) { - $title = addslashes($arrLP[$i]['title']); + //$title = addslashes(($arrLP[$i]['title'])); + $title = utf8_decode(html_entity_decode(addslashes($arrLP[$i]['title']),ENT_QUOTES,$this->encoding)); $menu_page = api_get_self() . '?cidReq=' . $_GET['cidReq'] . '&action=view_item&id=' . $arrLP[$i]['id'] . '&lp_id=' . $_SESSION['oLP']->lp_id; $icon_name = str_replace(' ', '', $arrLP[$i]['item_type']); if (file_exists("../img/lp_" . $icon_name . ".png")) @@ -4902,7 +4903,7 @@ class learnpath { $row['title'] = utf8_decode($row['title']); } - $return .= '

' . stripslashes($row['title']) . '

'; + $return .= '

' . $title = utf8_decode(html_entity_decode(stripslashes($row['title']),ENT_QUOTES,$this->encoding)) . '

'; //$return .= '

' . ((trim($row['description']) == '') ? 'no description' : stripslashes($row['description'])) . '

'; //$return .= '
';