aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-29 15:58:42 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-29 15:58:42 +0000
commit1f01089e2fb79de79164a21a39e8522761242841 (patch)
treeedc7f8c890f31c25f0805a5c229d53c35b4ec87a /phpBB/includes/functions_messenger.php
parent0a98003d91113336cf095c634447d4c14968cebc (diff)
downloadforums-1f01089e2fb79de79164a21a39e8522761242841.tar
forums-1f01089e2fb79de79164a21a39e8522761242841.tar.gz
forums-1f01089e2fb79de79164a21a39e8522761242841.tar.bz2
forums-1f01089e2fb79de79164a21a39e8522761242841.tar.xz
forums-1f01089e2fb79de79164a21a39e8522761242841.zip
Use phpBB 3.1.x method for storing cached data to prevent PHP bug with our usage of var_export(). (Thanks to Techie Micheal and HoL for pointing out possible problems)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8955 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 7583ed48fc..2160d712d0 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -693,7 +693,7 @@ class queue
if ($fp = @fopen($this->cache_file, 'w'))
{
@flock($fp, LOCK_EX);
- fwrite($fp, "<?php\n\$this->queue_data = " . var_export($this->queue_data, true) . ";\n?>");
+ fwrite($fp, "<?php\n\$this->queue_data = unserialize(" . var_export(serialize($this->queue_data), true) . ");\n\n?>");
@flock($fp, LOCK_UN);
fclose($fp);
@@ -734,7 +734,7 @@ class queue
if ($fp = @fopen($this->cache_file, 'w'))
{
@flock($fp, LOCK_EX);
- fwrite($fp, "<?php\n\$this->queue_data = " . var_export($this->data, true) . ";\n?>");
+ fwrite($fp, "<?php\n\$this->queue_data = unserialize(" . var_export(serialize($this->data), true) . ");\n\n?>");
@flock($fp, LOCK_UN);
fclose($fp);