From b8bbb3a05da4ef8a86c7557cbe201b519147c14d Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 5 Nov 2013 15:17:57 +0100 Subject: [PATCH] Adding api_get_cidreq() in URL before redirecting. --- main/newscorm/lp_content.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main/newscorm/lp_content.php b/main/newscorm/lp_content.php index dc91a6b0a3..39c625ac1a 100644 --- a/main/newscorm/lp_content.php +++ b/main/newscorm/lp_content.php @@ -21,10 +21,9 @@ if (empty($lp_controller_touched)) { if ($debug > 0) { error_log('New lp - In lp_content.php - Redirecting to lp_controller', 0); } - header('location: lp_controller.php?action=content&lp_id='.Security::remove_XSS($_REQUEST['lp_id']).'&item_id='.Security::remove_XSS($_REQUEST['item_id'])); + header('location: lp_controller.php?action=content&lp_id='.Security::remove_XSS($_REQUEST['lp_id']).'&item_id='.Security::remove_XSS($_REQUEST['item_id']).'&'.api_get_cidreq()); exit; } - $_SESSION['oLP']->error = ''; $lp_type = $_SESSION['oLP']->get_type(); $lp_item_id = $_SESSION['oLP']->get_current_item_id(); @@ -112,5 +111,5 @@ $_setting['show_navigation_menu'] = false; if ($debug > 0) { error_log('New LP - In lp_content.php - Loading '.$src, 0); } - header("Location: ".urldecode($src)); +exit;