X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/dceaed615cc4046d0f4145d17580fa1b7471c538..f8cfc76a8f02504af15ae89ac6f4896f072ff0a8:/login/index.php diff --git a/login/index.php b/login/index.php index 85dc2f5..f94984b 100644 --- a/login/index.php +++ b/login/index.php @@ -39,9 +39,12 @@ 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 = new ArchiveArticle(file_exists("$target/index.html") ? "$target/index.html" : "$target.html"); $target->index; # run forbidden handler to determine metadata if ($target->title) {