diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-05 12:03:18 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-05 12:03:18 -0500 |
commit | 63716637ed00ce6845daacc4b8398ae3ad9859a5 (patch) | |
tree | 79337d5ed635dda4cf21c227dc99fe13821cc5cc /app/Helper | |
parent | d0a1ed9227a5166aa56d37ccea142cdb1e0ae082 (diff) |
Improve filterSubject() helper method
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/MailHelper.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Helper/MailHelper.php b/app/Helper/MailHelper.php index b42d83ab..cb16d6f8 100644 --- a/app/Helper/MailHelper.php +++ b/app/Helper/MailHelper.php @@ -40,8 +40,9 @@ class MailHelper extends Base */ public function filterSubject($subject) { - $subject = str_replace('RE: ', '', $subject); - $subject = str_replace('FW: ', '', $subject); + $subject = str_ireplace('RE: ', '', $subject); + $subject = str_ireplace('FW: ', '', $subject); + $subject = str_ireplace('Fwd: ', '', $subject); return $subject; } |