Skip to content

Commit 8a5d008

Browse files
Don't log error when ignoring action if it is an ajax request
1 parent 52b191d commit 8a5d008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
if (isset($_POST['action'])) {
201201
# Actions can only be performed on POST because we don't check csrf on GETs.
202202
$action = detaintPath($_POST['action']);
203-
} else if (isset($_REQUEST['action']) and $_REQUEST['action']) {
203+
} else if (isset($_REQUEST['action']) and $_REQUEST['action'] and empty($_REQUEST['request'])) {
204204
ZM\Error('actions can no longer be performed without POST. Requested: '.$_REQUEST['action']. ' for ' .$view);
205205
}
206206

0 commit comments

Comments
 (0)