]> git.mjollnir.org Git - moodle.git/commitdiff
quiz MDL-17730 Fixed issues caused by escaped redirect urls
authorsamhemelryk <samhemelryk>
Mon, 20 Jul 2009 06:52:40 +0000 (06:52 +0000)
committersamhemelryk <samhemelryk>
Mon, 20 Jul 2009 06:52:40 +0000 (06:52 +0000)
question/question.php

index d191493c2e102b47b79045f8e1a7ab9b3b8ba52d..195861c618bbb69786e3a9aa8db8e95303ba4bdc 100644 (file)
@@ -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 {