Don't log error when ignoring action if it is an ajax request
parent
22df344880
commit
f9a3c5fc83
|
@ -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.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue