1
0
Fork 0
mirror of https://gitnet.fr/deblan/side_menu.git synced 2025-12-18 05:10:50 +01:00

Merge pull request 'release v5.0.3' (#423) from develop into master

Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/423
This commit is contained in:
Simon Vieille 2025-04-30 08:42:11 +02:00
commit 9fea794e2f
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## [Unreleased]
## 5.0.3
### Fixed
* fix #422: undefined array key "HTTP_USER_AGENT"
## 5.0.2
### Fixed
* fix #413: add user-agent check for memories mobile app

View file

@ -30,7 +30,7 @@ Notice
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
]]></description>
<version>5.0.2</version>
<version>5.0.3</version>
<licence>agpl</licence>
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
<namespace>SideMenu</namespace>

View file

@ -106,7 +106,7 @@ class Application extends App implements IBootstrap
protected function isEnabled(): bool
{
if (preg_match('/MemoriesNative/', $_SERVER['HTTP_USER_AGENT'])) {
if (isset($_SERVER["HTTP_USER_AGENT"]) && preg_match('/MemoriesNative/', $_SERVER['HTTP_USER_AGENT'])) {
return false;
}