From fddbfdbfa79bde81e7dfd2758402cc670f5693d8 Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Thu, 13 Feb 2003 08:06:04 +0000 Subject: [PATCH] use of global var fixed git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@501 860744bd-22fc-0310-8c96-e9fe5004b5ca --- auth_login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_login.php b/auth_login.php index c918cc902..cbeb519f9 100644 --- a/auth_login.php +++ b/auth_login.php @@ -115,7 +115,7 @@ case 'login': /* --- end ldap section --- */ /* make entry in the transactions log */ - db_execute("insert into user_log (username,result,ip) values('$username',1,'" . $_SERVER["REMOTE_ADDR"] . "')"); + db_execute("insert into user_log (username,result,ip) values('" . $_POST["username"] . "',1,'" . $_SERVER["REMOTE_ADDR"] . "')"); /* set the php session */ $_SESSION["sess_user_id"] = $user["id"];