Merge pull request #18795 from MauricioFauth/duplicate-route-param

Fix duplicate route parameter after logging in
This commit is contained in:
Maurício Meneghini Fauth 2023-11-16 19:56:31 -03:00 committed by GitHub
commit f370c1a8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -65,6 +65,7 @@ phpMyAdmin - ChangeLog
- issue Fix BETWEEN search does not validate input because of spaces
- issue Fix JS number validation does not validate when the input is empty or emptied
- issue #18561 Fix issue when adding System Monitor charts
- issue #17363 Fix duplicate route parameter after logging in
5.2.1 (2023-02-07)
- issue #17522 Fix case where the routes cache file is invalid

View File

@ -147,10 +147,6 @@ class AuthenticationCookie extends AuthenticationPlugin
}
$_form_params = [];
if (isset($route)) {
$_form_params['route'] = $route;
}
if (strlen($GLOBALS['db'])) {
$_form_params['db'] = $GLOBALS['db'];
}
@ -455,8 +451,6 @@ class AuthenticationCookie extends AuthenticationPlugin
*/
public function rememberCredentials(): void
{
global $route;
// Name and password cookies need to be refreshed each time
// Duration = one month for username
$this->storeUsernameCookie($this->user);
@ -470,10 +464,6 @@ class AuthenticationCookie extends AuthenticationPlugin
// any parameters to pass?
$url_params = [];
if (isset($route)) {
$url_params['route'] = $route;
}
if (strlen($GLOBALS['db']) > 0) {
$url_params['db'] = $GLOBALS['db'];
}