From: tjhunt Date: Tue, 20 Nov 2007 17:31:13 +0000 (+0000) Subject: MDL-12172 - Sorry, more fall-out from converting continue buttons to use GET instead... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=71e197598cc8f1a21ff57f9f32dea6fd8b457df8;p=moodle.git 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. --- 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);