]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed popup window call (eg from email)
authormoodler <moodler>
Mon, 17 Sep 2007 04:25:38 +0000 (04:25 +0000)
committermoodler <moodler>
Mon, 17 Sep 2007 04:25:38 +0000 (04:25 +0000)
message/index.php

index 10f2ba570d5f7276ceb6077f751e08d283d0bac6..21ed8814674b447ca87982eac3bc9881ee2442df 100644 (file)
     $removecontact  = optional_param('removecontact',  0, PARAM_INT); // removing a contact
     $blockcontact   = optional_param('blockcontact',   0, PARAM_INT); // blocking a contact
     $unblockcontact = optional_param('unblockcontact', 0, PARAM_INT); // unblocking a contact
-    $popup          = optional_param('popup', false, PARAM_ALPHA);    // If set then starts a new popup window
+    $popup          = optional_param('popup', false, PARAM_ALPHANUM);    // If set then starts a new popup window
 
 /// Popup a window if required and quit (usually from external links).
     if ($popup) {
         print_header();
         echo '<script type="text/javascript">'."\n//<![CDATA[\n openpopup('/message/index.php', 'message', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0);\n//]]>\n</script>";
-        redirect("$CFG->wwwroot/");
+        redirect("$CFG->wwwroot/", '', 0);
         exit;
     }