Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fea794e2f | |||
| 8772504b76 | |||
| 75bea4be38 | |||
| 8787918547 |
@@ -1,5 +1,9 @@
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## 5.0.3
|
||||||
|
### Fixed
|
||||||
|
* fix #422: undefined array key "HTTP_USER_AGENT"
|
||||||
|
|
||||||
## 5.0.2
|
## 5.0.2
|
||||||
### Fixed
|
### Fixed
|
||||||
* fix #413: add user-agent check for memories mobile app
|
* fix #413: add user-agent check for memories mobile app
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ Notice
|
|||||||
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
|
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/).
|
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>5.0.2</version>
|
<version>5.0.3</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
|
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
|
||||||
<namespace>SideMenu</namespace>
|
<namespace>SideMenu</namespace>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class Application extends App implements IBootstrap
|
|||||||
|
|
||||||
protected function isEnabled(): bool
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user