From 8a5d008b2868453cebc061d868027ba3e52ce78a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 16 Nov 2022 09:28:33 -0500 Subject: [PATCH] Don't log error when ignoring action if it is an ajax request --- web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.php b/web/index.php index b1faffe14d..93ff1e2348 100644 --- a/web/index.php +++ b/web/index.php @@ -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); }