git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: hide unannounced messages from public activity
[minimedit.git]
/
login
/
index.php
diff --git
a/login/index.php
b/login/index.php
index 85dc2f54a3cd893d5a55e9b30318eb377753b09f..f94984bbe0eec29dfb85620963cb0d4532dadc36 100644
(file)
--- 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 (!$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 = 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) {
$target->index; # run forbidden handler to determine metadata
if ($target->title) {