From 238713b452ccb8a419ab13d8604d5576b9e81bcc Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 1 Aug 2016 08:42:45 +1000 Subject: [PATCH] Fix menu items and navigation panel links Signed-off-by: Madhura Jayaratne --- libraries/common.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 51dc538316..3102e8c827 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -401,7 +401,9 @@ if ($token_mismatch) { /* Permit session expiry flag */ 'session_expired', /* JS loading */ - 'scripts', 'call_done' + 'scripts', 'call_done', + /* Navigation panel */ + 'aPath', 'vPath', 'pos', 'pos2_name', 'pos2_value', 'searchClause', 'searchClause2' ); /** * Allow changing themes in test/theme.php @@ -893,7 +895,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { * There is no point in even attempting to process * an ajax request if there is a token mismatch */ - if (isset($response) && $response->isAjax() && $token_mismatch) { + if (isset($response) && $response->isAjax() && $_SERVER['REQUEST_METHOD'] == 'POST' && $token_mismatch) { $response->setRequestStatus(false); $response->addJSON( 'message',