Merge pull request #18795 from MauricioFauth/duplicate-route-param
Fix duplicate route parameter after logging in
This commit is contained in:
commit
f370c1a8d6
@ -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
|
||||
|
||||
@ -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'];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user