Skip to content

Commit

Permalink
Add CSRF check)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 3, 2023
1 parent e8117dc commit c587c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/grid/StaticPageGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ function updateStaticPage($args, $request) {
* @return string Serialized JSON object
*/
function delete($args, $request) {
if (!$request->checkCSRF()) return new JSONMessage(false);

$staticPageId = $request->getUserVar('staticPageId');
$context = $request->getContext();

Expand Down

0 comments on commit c587c38

Please sign in to comment.