diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-28 08:31:42 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-28 08:31:42 +0000 |
| commit | 62073d43bc8fb42a9bee9fa218c5c8e12388fa39 (patch) | |
| tree | 1003a82121fa9b12f04156182944f33eaa19ec65 /roundcubemail/program/include/rcube_smtp.php | |
| parent | 08267eacc7565a3f2f8956bfb51dabcd45ce2472 (diff) | |
- Use strpos() instead of strstr() when possible (#1488211)
git-svn-id: https://svn.roundcube.net/trunk@5498 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_smtp.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.php b/roundcubemail/program/include/rcube_smtp.php index e1a6f3af0..088283b1d 100644 --- a/roundcubemail/program/include/rcube_smtp.php +++ b/roundcubemail/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; |
