diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2009-05-28 23:54:38 +0200 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2009-05-28 23:54:38 +0200 |
commit | 4b7f9e7005c4562f8b4b554ea5ea53fb1ebf804a (patch) | |
tree | 11fd280d8bd90a9c6aa58e2f2e4c0f2e0e4adef0 /inc/auth.php | |
parent | 4917a83a8d49fae8bcb51077f92f39bc839119c7 (diff) | |
download | rpg-4b7f9e7005c4562f8b4b554ea5ea53fb1ebf804a.tar.gz rpg-4b7f9e7005c4562f8b4b554ea5ea53fb1ebf804a.tar.bz2 |
Change expensive uses of split to the much faster explode.
darcs-hash:20090528215438-6942e-bf1b875e689ade6bd1a17e3d812ce16bf35c84a6.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index 23031a29c..d497c89d6 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -166,7 +166,7 @@ function auth_login($user,$pass,$sticky=false,$silent=false){ }else{ // read cookie information $cookie = base64_decode($_COOKIE[DOKU_COOKIE]); - list($user,$sticky,$pass) = split('\|',$cookie,3); + list($user,$sticky,$pass) = explode('|',$cookie,3); // get session info $session = $_SESSION[DOKU_COOKIE]['auth']; if($user && $pass){ @@ -744,7 +744,7 @@ function updateprofile() { if ($result = $auth->triggerUserMod('modify', array($_SERVER['REMOTE_USER'], $changes))) { // update cookie and session with the changed data $cookie = base64_decode($_COOKIE[DOKU_COOKIE]); - list($user,$sticky,$pass) = split('\|',$cookie,3); + list($user,$sticky,$pass) = explode('|',$cookie,3); if ($changes['pass']) $pass = PMA_blowfish_encrypt($changes['pass'],auth_cookiesalt()); auth_setCookie($_SERVER['REMOTE_USER'],$pass,(bool)$sticky); |