From 6e0fdedfce0c72eb642d89b9446fe304d9c66dcc Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 28 Nov 2011 08:31:42 +0000 Subject: - Use strpos() instead of strstr() when possible (#1488211) --- program/include/rcube_smtp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/rcube_smtp.php') 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; -- cgit v1.2.3