We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb462e7 commit 3fec435Copy full SHA for 3fec435
web/inc/main.php
@@ -175,14 +175,13 @@ function verify_csrf($method, $return = false)
175
{
176
if ($method['token'] !== $_SESSION['token'] || empty($method['token']) || empty($_SESSION['token'])) {
177
if ($return === true) {
178
- return false;
179
- } else {
180
- header('Location: /login/');
181
- die();
182
- }
+ return false;
183
} else {
184
- return true;
+ header('Location: /login/');
+ die();
185
}
+ } else {
+ return true;
186
187
188
@@ -463,4 +462,4 @@ function backendtpl_with_webdomains()
463
462
function validate_password($password)
464
465
return preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(.){8,}$/', $password);
466
-}
+}
0 commit comments