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:
parent
553d1ff343
commit
06fe8c0e25
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user