Merge branch 'QA_5_1'

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2021-07-05 17:26:46 -03:00
commit 81de66a019
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
4 changed files with 4 additions and 3 deletions

View File

@ -34,6 +34,7 @@ phpMyAdmin - ChangeLog
- issue #16982 Do not try to delete internal relations if they are not configured
- issue #16982 Show success messages on Designer for add and remove relation operations
- issue Fixed possible "Undefined index: clause_is_unique" on replace value in cell
- issue #16991 Fixed case where $_SERVER['REQUEST_METHOD'] is undefined
5.1.1 (2021-06-04)
- issue #13325 Fixed created procedure shows up in triggers and events and vice-versa

View File

@ -12,7 +12,7 @@ class LogoutController
{
global $auth_plugin, $token_mismatch;
if ($_SERVER['REQUEST_METHOD'] !== 'POST' || $token_mismatch) {
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST' || $token_mismatch) {
Core::sendHeaderLocation('./index.php?route=/');
return;

View File

@ -1393,7 +1393,7 @@ class Core
$token_mismatch = true;
$token_provided = false;
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST') {
return;
}

View File

@ -56,7 +56,7 @@ if ($page === 'config') {
if ($page === 'servers') {
$controller = new ServersController($GLOBALS['ConfigFile'], new Template());
if (isset($_GET['mode']) && $_GET['mode'] === 'remove' && $_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_GET['mode']) && $_GET['mode'] === 'remove' && ($_SERVER['REQUEST_METHOD'] ?? 'GET') === 'POST') {
$controller->destroy([
'id' => $_GET['id'] ?? null,
]);