From 9afca453779700f8ca9a50a2ba1bb29619482dd5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 10 Jun 2018 15:22:56 +0400 Subject: Added saving of GET variables Signed-off-by: Valentin Popov --- auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.php b/auth.php index aa69815..ae5f4af 100644 --- a/auth.php +++ b/auth.php @@ -152,10 +152,10 @@ class auth_plugin_link extends auth_plugin_base { public function redirect_user() { global $CFG, $SESSION; - $redirect = $CFG->wwwroot; + $redirect = new moodle_url($CFG->wwwroot, $_GET); if (isset($SESSION->wantsurl)) { - $redirect = $SESSION->wantsurl; + $redirect = new moodle_url($SESSION->wantsurl, $_GET); } else if (isset($_GET['wantsurl'])) { $redirect = htmlspecialchars($_GET['wantsurl']); } -- cgit v1.2.3