summaryrefslogtreecommitdiff
path: root/program/include/rcube_smtp.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-11-28 08:31:42 +0000
committeralecpl <alec@alec.pl>2011-11-28 08:31:42 +0000
commit6e0fdedfce0c72eb642d89b9446fe304d9c66dcc (patch)
treebd05c62205039632687e9dc5d4fd83d18cee08ea /program/include/rcube_smtp.php
parentca0cd05973b468c056a682ab1fb9133856a56943 (diff)
- Use strpos() instead of strstr() when possible (#1488211)
Diffstat (limited to 'program/include/rcube_smtp.php')
-rw-r--r--program/include/rcube_smtp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_smtp.php b/program/include/rcube_smtp.php
index e1a6f3af0..088283b1d 100644
--- a/program/include/rcube_smtp.php
+++ b/program/include/rcube_smtp.php
@@ -390,7 +390,7 @@ class rcube_smtp
$from = $addresses[0];
// Reject envelope From: addresses with spaces.
- if (strstr($from, ' '))
+ if (strpos($from, ' ') !== false)
return false;
$lines[] = $key . ': ' . $value;