diff options
author | robocoder <anthon.pang@gmail.com> | 2011-01-04 18:43:27 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-01-04 18:43:27 +0300 |
commit | 916da2d0fd804ca489330d27bc07f2a0766db3b3 (patch) | |
tree | 8caf9d895c5f11336fb0255fcb13e88e4f515a15 /core/Cookie.php | |
parent | 0d3a68268f09ad11af99a8431756ecbb4e59d467 (diff) |
use '< 5.2.1' to catch 5.2.0-custom builds; also use safe_serialize/safe_unserialize for php 5.1.x (because json extension is not built-in and it emits warnings that the built-in doesn't)
git-svn-id: http://dev.piwik.org/svn/trunk@3613 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Cookie.php')
-rw-r--r-- | core/Cookie.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Cookie.php b/core/Cookie.php index 20911714c2..6f99912c99 100644 --- a/core/Cookie.php +++ b/core/Cookie.php @@ -227,7 +227,7 @@ class Piwik_Cookie if(!is_numeric($varValue)) { // @see http://bugs.php.net/38680 - if(PHP_VERSION == '5.2.0') + if(PHP_VERSION < '5.2.1') { $varValue = safe_unserialize(base64_decode($varValue)); } @@ -255,7 +255,7 @@ class Piwik_Cookie if(!is_numeric($value)) { // @see http://bugs.php.net/38680 - if(PHP_VERSION == '5.2.0') + if(PHP_VERSION < '5.2.1') { $value = base64_encode(safe_serialize($value)); } |