From 71e197598cc8f1a21ff57f9f32dea6fd8b457df8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 20 Nov 2007 17:31:13 +0000 Subject: [PATCH] MDL-12172 - Sorry, more fall-out from converting continue buttons to use GET instead of POST. Sometimes, URLs were being passed in with & already repalced by & and we weren't handling that properly. Should now be fixed. Merged from MOODLE_19_STABLE. --- lib/weblib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index cdf37c31f1..abb3484003 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3665,13 +3665,13 @@ function print_continue($link, $return=false) { $link = $CFG->wwwroot .'/'; } } - + $options = array(); - $linkparts = parse_url($link); + $linkparts = parse_url(str_replace('&', '&', $link)); if (isset($linkparts['query'])) { parse_str($linkparts['query'], $options); } - + $output .= '
'; $output .= print_single_button($link, $options, get_string('continue'), 'get', $CFG->framename, true); -- 2.39.5