Skip to content

Commit

Permalink
fix: added missing error message if CSRF token check fails (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Feb 14, 2023
1 parent 1fbfe24 commit ee509f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpmyfaq/admin/configuration.php
Expand Up @@ -88,6 +88,8 @@
}

$faqConfig->getAll();
} elseif ('saveConfig' === $userAction && $currentToken !== $csrfToken) {
echo '<div class="alert alert-danger">Error: CSRF Token mismatch!</div>';
}
?>
<form id="config_list" name="config_list" method="post"
Expand Down

0 comments on commit ee509f2

Please sign in to comment.