summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-06-10 14:22:56 +0300
committerValentin Popov <info@valentineus.link>2018-06-10 14:22:56 +0300
commit9afca453779700f8ca9a50a2ba1bb29619482dd5 (patch)
tree08bb975f169b9f8c9dadc561ef3e408154a7ade7
parentb7f6d2025946171955dcad01d7b6a3d0b150f992 (diff)
downloadauth_link-9afca453779700f8ca9a50a2ba1bb29619482dd5.tar.xz
auth_link-9afca453779700f8ca9a50a2ba1bb29619482dd5.zip
Added saving of GET variables
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--auth.php4
1 files 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']);
}