mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 00:22:55 +01:00
Avoid to process too large user agent
This commit is contained in:
@@ -154,6 +154,8 @@ function getBrowserInfo($user_agent)
|
||||
$os = 'unknown';
|
||||
$phone = '';
|
||||
|
||||
$user_agent = substr($user_agent, 0, 512); // Avoid to process too large user agent
|
||||
|
||||
$detectmobile = new Mobile_Detect(null, $user_agent);
|
||||
$tablet = $detectmobile->isTablet();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user