Skip to content

Commit

Permalink
Don't log error when ignoring action if it is an ajax request
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Aug 8, 2024
1 parent 52b191d commit 8a5d008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
if (isset($_POST['action'])) {
# Actions can only be performed on POST because we don't check csrf on GETs.
$action = detaintPath($_POST['action']);
} else if (isset($_REQUEST['action']) and $_REQUEST['action']) {
} else if (isset($_REQUEST['action']) and $_REQUEST['action'] and empty($_REQUEST['request'])) {
ZM\Error('actions can no longer be performed without POST. Requested: '.$_REQUEST['action']. ' for ' .$view);
}

Expand Down

0 comments on commit 8a5d008

Please sign in to comment.