Don't log error when ignoring action if it is an ajax request

pull/3636/head
Isaac Connor 2022-11-16 09:28:33 -05:00
parent 22df344880
commit f9a3c5fc83
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ foreach ( getSkinIncludes('skin.php') as $includeFile ) {
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.');
}