mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Fix detection of text browser with w3m
This commit is contained in:
@@ -603,8 +603,12 @@ function getBrowserInfo($user_agent)
|
||||
$version = end($reg);
|
||||
} elseif (preg_match('/l[iy]n(x|ks)(\(|\/|\s)*([\d\.]+)/i', $user_agent, $reg)) {
|
||||
// MS products at end
|
||||
$name = 'lynxlinks';
|
||||
$name = 'textbrowser';
|
||||
$version = empty($reg[3]) ? '' : $reg[3];
|
||||
} elseif (preg_match('/w3m\/([\d\.]+)/i', $user_agent, $reg)) {
|
||||
// MS products at end
|
||||
$name = 'textbrowser';
|
||||
$version = empty($reg[1]) ? '' : $reg[1];
|
||||
}
|
||||
|
||||
if ($tablet) {
|
||||
|
||||
Reference in New Issue
Block a user