X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/58c5ec6b45dcc52107f5e7c8bbca2933c7f2e98d..f8cfc76a8f02504af15ae89ac6f4896f072ff0a8:/login/index.php diff --git a/login/index.php b/login/index.php index cfe0027..f94984b 100644 --- a/login/index.php +++ b/login/index.php @@ -44,7 +44,7 @@ if (!$User or !$User->login) { 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) {