fix regular expression to not update access-log for avatar

This commit is contained in:
Ralf Becker 2019-10-22 09:56:40 +02:00
parent 32fbb84772
commit cad1ec2aaf

View File

@ -1797,7 +1797,7 @@ class Session
// update dla in access-log table, if we have an access-log row (non-anonymous session)
if ($this->sessionid_access_log && $update_access_log &&
// ignore updates (session creation is written) of *dav and avatar, due to possible high volume of updates
!preg_match('#^(/webdav|/groupdav|api/avatar)\.php#', $this->action) &&
!preg_match('#^(/webdav|/groupdav|/api/avatar)\.php#', $this->action) &&
is_object($GLOBALS['egw']->db))
{
$GLOBALS['egw']->db->update(self::ACCESS_LOG_TABLE,array(