Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix: added missing check on redirect value
  • Loading branch information
thorsten committed Dec 15, 2022
1 parent 1123c08 commit 3872e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/admin/index.php
Expand Up @@ -136,7 +136,7 @@
//
// Get possible redirect action
//
$redirectAction = Filter::filterInput(INPUT_POST, 'redirect-action', FILTER_UNSAFE_RAW);
$redirectAction = Filter::filterInput(INPUT_POST, 'redirect-action', FILTER_SANITIZE_SPECIAL_CHARS);
if (is_null($action) && '' !== $redirectAction && 'logout' !== $redirectAction) {
$action = $redirectAction;
}
Expand Down

0 comments on commit 3872e7e

Please sign in to comment.