patch #3025161 [core] Prevent sending of unnecessary cookies
This commit is contained in:

committed by
Marc Delisle

parent
11609bdf80
commit
573edc0329
@@ -84,6 +84,8 @@ $Id$
|
|||||||
- bug #3004216 [CSS] Field attributes use inline CSS
|
- bug #3004216 [CSS] Field attributes use inline CSS
|
||||||
- patch #2999595, rfe #2998130 [interface] Cleanup navigation frame.
|
- patch #2999595, rfe #2998130 [interface] Cleanup navigation frame.
|
||||||
- [core] Update library PHPExcel to version 1.7.3c
|
- [core] Update library PHPExcel to version 1.7.3c
|
||||||
|
- patch #3025161 [core] Prevent sending of unnecessary cookies,
|
||||||
|
thanks to Piotr Przybylski - crackpl
|
||||||
|
|
||||||
3.3.5.0 (not yet released)
|
3.3.5.0 (not yet released)
|
||||||
- patch #2932113 [information_schema] Slow export when having lots of
|
- patch #2932113 [information_schema] Slow export when having lots of
|
||||||
|
@@ -1086,11 +1086,14 @@ class PMA_Config
|
|||||||
if ($validity == null) {
|
if ($validity == null) {
|
||||||
$validity = 2592000;
|
$validity = 2592000;
|
||||||
}
|
}
|
||||||
if (strlen($value) && null !== $default && $value === $default
|
if (strlen($value) && null !== $default && $value === $default) {
|
||||||
&& isset($_COOKIE[$cookie])) {
|
// default value is used
|
||||||
// remove cookie, default value is used
|
if (isset($_COOKIE[$cookie])) {
|
||||||
|
// remove cookie
|
||||||
return $this->removeCookie($cookie);
|
return $this->removeCookie($cookie);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (! strlen($value) && isset($_COOKIE[$cookie])) {
|
if (! strlen($value) && isset($_COOKIE[$cookie])) {
|
||||||
// remove cookie, value is empty
|
// remove cookie, value is empty
|
||||||
|
Reference in New Issue
Block a user