From: samhemelryk Date: Mon, 20 Jul 2009 06:52:40 +0000 (+0000) Subject: quiz MDL-17730 Fixed issues caused by escaped redirect urls X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7a567a92bae4b79634b84e471936b1de875c4e7c;p=moodle.git quiz MDL-17730 Fixed issues caused by escaped redirect urls --- diff --git a/question/question.php b/question/question.php index d191493c2e..195861c618 100644 --- a/question/question.php +++ b/question/question.php @@ -183,7 +183,7 @@ if ($mform->is_cancelled()){ /// Ensure we redirect back to the category the question is being saved into. $returnurl = new moodle_url($returnurl); $returnurl->param('category', $fromform->category); - $returnurl = $returnurl->out(); + $returnurl = $returnurl->out(false, array(), false); /// Call the appropriate method. if ($movecontext) { @@ -200,7 +200,7 @@ if ($mform->is_cancelled()){ } else { $movecontexturl->param('courseid', $COURSE->id); } - redirect($movecontexturl->out()); + redirect($movecontexturl); } } @@ -221,7 +221,7 @@ if ($mform->is_cancelled()){ if($appendqnumstring) { $nexturl->params(array($appendqnumstring=>($question->id), "sesskey"=>sesskey(), "cmid"=>$cmid)); } - redirect($nexturl->out()); + redirect($nexturl); } } else { $nexturlparams = array('returnurl'=>$returnurl, 'appendqnumstring'=>$appendqnumstring); @@ -236,7 +236,7 @@ if ($mform->is_cancelled()){ } else { $nexturl->param('courseid', $COURSE->id); } - redirect($nexturl->out()); + redirect($nexturl); } } else {