Merge branch 'QA_4_7'

This commit is contained in:
Michal Čihař 2017-03-16 14:54:58 +01:00
commit 76668dcfd2
2 changed files with 5 additions and 0 deletions

View File

@ -108,6 +108,7 @@ phpMyAdmin - ChangeLog
- issue #13053 Fixed broken links in setup
- issue #12708 Removed phpMyAdmin version from User-Agent header
- issue #13084 Do not point users to setup when it is disabled
- issue #12660 Delete only phpMyAdmin cookies on upgrade
4.6.6 (2017-01-23)
- issue #12759 Fix Notice regarding 'Undefined index: old_usergroup'

View File

@ -242,6 +242,10 @@ if (isset($_COOKIE)) {
) {
// delete all cookies
foreach ($_COOKIE as $cookie_name => $tmp) {
// We ignore cookies not with pma prefix
if (strncmp('pma', $cookie_name, 3) != 0) {
continue;
}
$GLOBALS['PMA_Config']->removeCookie($cookie_name);
}
$_COOKIE = array();