patch #2075263 [auth] Single sign-on and cookie clearing
This commit is contained in:
@@ -84,6 +84,8 @@ danbarry
|
|||||||
- [core] safer handling of temporary files with open_basedir (thanks to Thijs Kinkhorst)
|
- [core] safer handling of temporary files with open_basedir (thanks to Thijs Kinkhorst)
|
||||||
+ [lang] Czech update
|
+ [lang] Czech update
|
||||||
- bug #2066923 [display] Navi browse icon does not go to page 1
|
- bug #2066923 [display] Navi browse icon does not go to page 1
|
||||||
|
- patch #2075263 [auth] Single sign-on and cookie clearing,
|
||||||
|
thanks to Charles Suh - cws125
|
||||||
|
|
||||||
2.11.9.0 (2008-08-28)
|
2.11.9.0 (2008-08-28)
|
||||||
- bug #2031221 [auth] Links to version number on login screen
|
- bug #2031221 [auth] Links to version number on login screen
|
||||||
|
@@ -240,13 +240,13 @@ if (function_exists('get_magic_quotes_gpc') && -1 == version_compare(PHP_VERSION
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clean cookies on new install or upgrade
|
* clean cookies on upgrade
|
||||||
* when changing something with increment the cookie version
|
* when changing something related to PMA cookies, increment the cookie version
|
||||||
*/
|
*/
|
||||||
$pma_cookie_version = 4;
|
$pma_cookie_version = 4;
|
||||||
if (isset($_COOKIE)
|
if (isset($_COOKIE)
|
||||||
&& (! isset($_COOKIE['pmaCookieVer'])
|
&& (isset($_COOKIE['pmaCookieVer'])
|
||||||
|| $_COOKIE['pmaCookieVer'] < $pma_cookie_version)) {
|
&& $_COOKIE['pmaCookieVer'] < $pma_cookie_version)) {
|
||||||
// delete all cookies
|
// delete all cookies
|
||||||
foreach($_COOKIE as $cookie_name => $tmp) {
|
foreach($_COOKIE as $cookie_name => $tmp) {
|
||||||
PMA_removeCookie($cookie_name);
|
PMA_removeCookie($cookie_name);
|
||||||
|
Reference in New Issue
Block a user