diff options
author | Michael Hamann <michael@content-space.de> | 2013-02-20 20:26:05 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-24 12:39:02 +0000 |
commit | 9507770d8c13e47b975bf35fe25264448da3f28a (patch) | |
tree | 2f2f816e5e426ccf935f4f00a2fea7a31a1f1a2b /lib/plugins/authad/auth.php | |
parent | e8baa2279f46cfaaf18a54d75c1329d266a4ca47 (diff) | |
download | rpg-9507770d8c13e47b975bf35fe25264448da3f28a.tar.gz rpg-9507770d8c13e47b975bf35fe25264448da3f28a.tar.bz2 |
Fix remaining missing $INPUT uses FS#2577
This adds $INPUT in all places where it was still missing and available.
$INPUT is now also used in places where using $_REQUEST/... was okay in
order to make the code consistent.
Diffstat (limited to 'lib/plugins/authad/auth.php')
-rw-r--r-- | lib/plugins/authad/auth.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/plugins/authad/auth.php b/lib/plugins/authad/auth.php index f651d87a1..6c49eafbb 100644 --- a/lib/plugins/authad/auth.php +++ b/lib/plugins/authad/auth.php @@ -71,6 +71,7 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin { * Constructor */ public function __construct() { + global $INPUT; parent::__construct(); // we load the config early to modify it a bit here @@ -99,8 +100,8 @@ class auth_plugin_authad extends DokuWiki_Auth_Plugin { // we need to simulate a login if(empty($_COOKIE[DOKU_COOKIE])) { - $_REQUEST['u'] = $_SERVER['REMOTE_USER']; - $_REQUEST['p'] = 'sso_only'; + $INPUT->set('u', $_SERVER['REMOTE_USER']); + $INPUT->set('p', 'sso_only'); } } |