From afd47f7c38809c786a742b57616b5a37730ff95e Mon Sep 17 00:00:00 2001 From: Daniel Barreto Date: Mon, 27 Oct 2014 16:34:03 -0500 Subject: [PATCH] Fix get link method to replace & by & - refs BT#8849 --- main/newscorm/learnpath.class.php | 2 ++ main/newscorm/lp_view.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 534047a490..7ce076fe28 100755 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -3458,6 +3458,8 @@ class learnpath default : break; } + // Replace & by & because & will break URL with params + $file = !empty($file) ? str_replace('&', '&', $file) : ''; } if ($this->debug > 2) { error_log('New LP - In learnpath::get_link() - returning "' . $file . '" from get_link', 0); diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index d040206461..724edbd80a 100755 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -439,7 +439,6 @@ if ($is_allowed_to_edit) {
mode == 'fullscreen') {