mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
quiten warning if client sends no User-Agent header
This commit is contained in:
parent
44ae9650f8
commit
264d22599d
@ -16,7 +16,7 @@ use EGroupware\Api\Egw;
|
|||||||
|
|
||||||
// Rocket.Chat desktop clients ignore /rocketchat/ path in URL and use just /
|
// Rocket.Chat desktop clients ignore /rocketchat/ path in URL and use just /
|
||||||
// --> redirect them back to /rocketchat/
|
// --> redirect them back to /rocketchat/
|
||||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Rocket.Chat') !== false)
|
if (strpos($_SERVER['HTTP_USER_AGENT'] ?? '', 'Rocket.Chat') !== false)
|
||||||
{
|
{
|
||||||
header('Location: /rocketchat/');
|
header('Location: /rocketchat/');
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user