fix #413: add user-agent check for memories mobile app #414

Merged
deblan merged 1 commit from bugfix/issues413-memories into develop 2025-04-18 10:36:18 +02:00
Showing only changes of commit c0eb65547d - Show all commits

fix #413: add user-agent check for memories mobile app
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
ci/woodpecker/push/security Pipeline is pending approval
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/security Pipeline was successful

Simon Vieille 2025-04-17 15:15:03 +02:00
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -106,6 +106,10 @@ class Application extends App implements IBootstrap
protected function isEnabled(): bool
{
if (preg_match('/MemoriesNative/', $_SERVER['HTTP_USER_AGENT'])) {
return false;
}
$enabled = true;
$isForced = (bool) $this->config->getAppValue(self::APP_ID, 'force', '0');