Properly report invalid token error on AJAX requests

We need to keep ajax_request flag to properly report result in JSON.

Issue #13114

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-03-22 10:24:31 +01:00
parent 553d1ff343
commit 06fe8c0e25

View File

@ -382,9 +382,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
/**
* We don't allow any POST operation parameters if the token is mismatched
* or is not provided
*
*/
$whitelist = array();
$whitelist = array('ajax_request');
PMA\libraries\Sanitize::removeRequestVars($whitelist);
}
}