Save user agent on open

[MAILPOET-3735]
This commit is contained in:
Pavel Dohnal
2021-08-17 12:53:06 +02:00
committed by Veljko V
parent 4f37cde9f9
commit a84471b65c
6 changed files with 84 additions and 12 deletions

View File

@ -98,6 +98,7 @@ class Track {
'queue' => $data->queue_id, // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
]);
}
$data->userAgent = $_SERVER['HTTP_USER_AGENT'] ?? null;
return $this->_validateTrackData($data);
}