mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
fixes #1835 remove HTML tags from user_agent before storing it
This commit is contained in:
@@ -573,7 +573,7 @@ function pwg_activity($object, $object_id, $action, $details=array())
|
|||||||
$user_agent = null;
|
$user_agent = null;
|
||||||
if ('user' == $object and 'login' == $action and isset($_SERVER['HTTP_USER_AGENT']))
|
if ('user' == $object and 'login' == $action and isset($_SERVER['HTTP_USER_AGENT']))
|
||||||
{
|
{
|
||||||
$user_agent = $_SERVER['HTTP_USER_AGENT'];
|
$user_agent = strip_tags($_SERVER['HTTP_USER_AGENT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('photo' == $object and 'add' == $action and !isset($details['sync']))
|
if ('photo' == $object and 'add' == $action and !isset($details['sync']))
|
||||||
|
|||||||
Reference in New Issue
Block a user