aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 0666275181..de8b031b68 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -681,14 +681,14 @@ class queue
break;
}
}
-
+
if (!sizeof($this->queue_data))
{
@unlink($this->cache_file);
}
else
{
- if ($fp = @fopen($this->cache_file, 'w'))
+ if ($fp = @fopen($this->cache_file, 'wb'))
{
@flock($fp, LOCK_EX);
fwrite($fp, "<?php\n\$this->queue_data = " . var_export($this->queue_data, true) . ";\n?>");
@@ -711,11 +711,11 @@ class queue
{
return;
}
-
+
if (file_exists($this->cache_file))
{
include($this->cache_file);
-
+
foreach ($this->queue_data as $object => $data_ary)
{
if (isset($this->data[$object]) && sizeof($this->data[$object]))
@@ -1045,7 +1045,7 @@ class smtp_class
$err_msg .= $message;
}
}
-
+
/**
* Log into server and get possible auth codes if neccessary
*/
@@ -1106,7 +1106,7 @@ class smtp_class
return false;
}
- // If EHLO fails, we try HELO
+ // If EHLO fails, we try HELO
$this->server_send("HELO {$local_host}");
if ($err_msg = $this->server_parse('250', __LINE__))
{
@@ -1127,7 +1127,7 @@ class smtp_class
{
return false;
}
-
+
if (!isset($this->commands['AUTH']))
{
return (isset($user->lang['SMTP_NO_AUTH_SUPPORT'])) ? $user->lang['SMTP_NO_AUTH_SUPPORT'] : 'SMTP server does not support authentication';
@@ -1288,7 +1288,7 @@ class smtp_class
}
$md5_challenge = base64_decode($this->responses[0]);
-
+
// Parse the md5 challenge - from AUTH_SASL (PEAR)
$tokens = array();
while (preg_match('/^([a-z-]+)=("[^"]+(?<!\\\)"|[^,]+)/i', $md5_challenge, $matches))