[SUCS Devel] [Git][sucssite/gameauth][master] 2 commits: Fix horrible bug.

Imran Hussain imranh at sucs.org
Wed Aug 31 11:15:32 BST 2016


Imran Hussain pushed to branch master at sucssite / gameauth


Commits:
b4b2b37b by Imran Hussain at 2016-08-31T11:15:38+01:00
Fix horrible bug.

strtolower what though?

- - - - -
36d7306c by Imran Hussain at 2016-08-31T11:16:44+01:00
Fix what I think was a bad copy paste job

- - - - -


1 changed file:

- controll_2.php


Changes:

=====================================
controll_2.php
=====================================
--- a/controll_2.php
+++ b/controll_2.php
@@ -115,7 +115,7 @@
             array_pop($s);
             $username = implode("@",$s);
         }
-        $username = strtolower();
+        $username = strtolower($username);
 
         $authResult = authCheck($authd,$username);
         //If they gave a good login
@@ -125,7 +125,7 @@
             $cip = $_SERVER['REMOTE_ADDR'];
             $time = time();
             sqlite3Exec("DELET FROM gamers WHERE username='$username'");
-            sqlite3Exec("INSERT INTO gamers (username,sessionid,IP,authd,lastseen) VALUES ('$authdUser','$sessionid','$cip','$authd','$time')");
+            sqlite3Exec("INSERT INTO gamers (username,sessionid,IP,authd,lastseen) VALUES ('$username','$sessionid','$cip','$authd','$time')");
         }
 
         //Return the authResult



View it on GitLab: https://projects.sucs.org/sucssite/gameauth/compare/7b847726015f6856edfe55fa84db98f999760aa7...36d7306c33ecc2a7f0fe7a1a63fbba25fad81dc1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20160831/a6c41781/attachment-0001.html>


More information about the Devel mailing list