mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
limit login-name in accesslog to 30 chars as the column is created in table
This commit is contained in:
parent
2deefe45f7
commit
3ca724bf61
@ -608,6 +608,10 @@
|
|||||||
|
|
||||||
if ($login != '')
|
if ($login != '')
|
||||||
{
|
{
|
||||||
|
if (strlen($login) > 30)
|
||||||
|
{
|
||||||
|
$login = substr($login,0,30);
|
||||||
|
}
|
||||||
$GLOBALS['phpgw']->db->query('INSERT INTO phpgw_access_log(sessionid,loginid,ip,li,lo,account_id)'
|
$GLOBALS['phpgw']->db->query('INSERT INTO phpgw_access_log(sessionid,loginid,ip,li,lo,account_id)'
|
||||||
. " VALUES ('" . $sessionid . "','" . $this->db->db_addslashes($login). "','"
|
. " VALUES ('" . $sessionid . "','" . $this->db->db_addslashes($login). "','"
|
||||||
. $this->db->db_addslashes($user_ip) . "',$now,0," . (int)$account_id .')',__LINE__,__FILE__);
|
. $this->db->db_addslashes($user_ip) . "',$now,0," . (int)$account_id .')',__LINE__,__FILE__);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user