From 7a567a92bae4b79634b84e471936b1de875c4e7c Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Mon, 20 Jul 2009 06:52:40 +0000 Subject: [PATCH] quiz MDL-17730 Fixed issues caused by escaped redirect urls --- question/question.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 { -- 2.39.5