From 79d0084189da3cfab3b5d009d69246e1bee1070c Mon Sep 17 00:00:00 2001
From: Oliver Geisen <oliver.geisen@kreisbote.de>
Date: Sat, 8 Nov 2008 23:50:35 +0100
Subject: [PATCH] fixed missing global scope in auth_setCookie() FS#1530

darcs-hash:20081108225035-6837b-a662b0728205e64f5eaf7bd0003748a5be8a6b2f.gz
---
 inc/auth.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/inc/auth.php b/inc/auth.php
index 87b5f80ee..9c21fcbef 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -874,7 +874,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){
             for($i = $len; $i > 0; $i -= 16) { $text .= substr($bin, 0, min(16, $i)); }
             for($i = $len; $i > 0; $i >>= 1) { $text .= ($i & 1) ? chr(0) : $clear{0}; }
             $bin = pack("H32", md5($text));
-            for($i = 0; $i < 1000; $i++) { 
+            for($i = 0; $i < 1000; $i++) {
                 $new = ($i & 1) ? $clear : $bin;
                 if ($i % 3) $new .= $salt;
                 if ($i % 7) $new .= $clear;
@@ -884,7 +884,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){
             $tmp = '';
             for ($i = 0; $i < 5; $i++) {
                 $k = $i + 6;
-                $j = $i + 12; 
+                $j = $i + 12;
                 if ($j == 16) $j = 5;
                 $tmp = $bin[$i].$bin[$k].$bin[$j].$tmp;
             }
@@ -976,8 +976,9 @@ function auth_verifyPassword($clear,$crypt){
  * @param bool    $sticky     whether or not the cookie will last beyond the session
  */
 function auth_setCookie($user,$pass,$sticky) {
-	  global $conf;
-	  global $auth;
+    global $conf;
+    global $auth;
+    global $USERINFO;
 
       $USERINFO = $auth->getUserData($user);
 
-- 
GitLab