diff options
author | Michal Koutný <xm.koutny@gmail.com> | 2014-10-13 02:12:55 +0200 |
---|---|---|
committer | Michal Koutný <xm.koutny@gmail.com> | 2014-10-13 02:12:55 +0200 |
commit | 9c03f73b0f57a7e1bf6a3108813a4004bf66d307 (patch) | |
tree | bdf0a9f0ce75a61489336dd67fc42acb0a62e518 /lib/plugins/auth.php | |
parent | b2e6a1f4afcd548dbd5bc6af110940b08b9f1a88 (diff) | |
download | rpg-9c03f73b0f57a7e1bf6a3108813a4004bf66d307.tar.gz rpg-9c03f73b0f57a7e1bf6a3108813a4004bf66d307.tar.bz2 |
AUTH_USER_CHANGE handler can modify passed data
Originally AUTH_USER_CHANGE handler could modify the user data, however,
auth plugin consequently worked with different copy of the array thus
effectively preventing any changes by the AUTH_USER_CHANGE implementer.
Diffstat (limited to 'lib/plugins/auth.php')
-rw-r--r-- | lib/plugins/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/auth.php b/lib/plugins/auth.php index b38b591a3..02e0613dd 100644 --- a/lib/plugins/auth.php +++ b/lib/plugins/auth.php @@ -129,7 +129,7 @@ class DokuWiki_Auth_Plugin extends DokuWiki_Plugin { $eventdata = array('type' => $type, 'params' => $params, 'modification_result' => null); $evt = new Doku_Event('AUTH_USER_CHANGE', $eventdata); if($evt->advise_before(true)) { - $result = call_user_func_array(array($this, $validTypes[$type]), $params); + $result = call_user_func_array(array($this, $validTypes[$type]), $evt->data['params']); $evt->data['modification_result'] = $result; } $evt->advise_after(); |