X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/dc93b0f8e382f9f449051a1b0412ed5fafebf77b..58c5ec6b45dcc52107f5e7c8bbca2933c7f2e98d:/login/index.php diff --git a/login/index.php b/login/index.php index 85dc2f5..cfe0027 100644 --- a/login/index.php +++ b/login/index.php @@ -39,7 +39,10 @@ elseif (isset($_GET['logout'])) { if (!$User or !$User->login) { $Page->title = 'Inloggen'; if (isset($_REQUEST['goto'])) { - if (empty($message)) http_response_code(403); + if (empty($message) + and !preg_match('(^WhatsApp/)', $_SERVER['HTTP_USER_AGENT'])) { + http_response_code(403); + } $target = ltrim($_REQUEST['goto'], '/'); $target = new ArchiveArticle("$target.html"); $target->index; # run forbidden handler to determine metadata