Stricter check for direct=1 login

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-05-09 13:16:43 +02:00
parent fbb0d9f6cd
commit 06b6f33159

View file

@ -125,7 +125,7 @@ if (!$cli &&
} catch (\LogicException $e) {
// ignore exception when PUT is called since getParams cannot parse parameters in that case
}
if (isset($params['direct'])) {
if (isset($params['direct']) && ($params['direct'] === 1 || $params['direct'] === '1')) {
return;
}
$redirectSituation = true;