Commit:    217cdbcce8c5cfbf215fab288e41336dcf1bde28
Author:    Ben Ramsey <[email protected]>         Sat, 23 Jan 2016 01:08:52 
-0500
Parents:   281559d86c1f69b6aae6bf8a7288c69a9380303c
Branches:  master

Link:       
http://git.php.net/?p=web/news.git;a=commitdiff;h=217cdbcce8c5cfbf215fab288e41336dcf1bde28

Log:
Ensure the header fields are lowercase

Changed paths:
  M  lib/fMailbox.php


Diff:
diff --git a/lib/fMailbox.php b/lib/fMailbox.php
index 1d82b2e..7ffa39b 100644
--- a/lib/fMailbox.php
+++ b/lib/fMailbox.php
@@ -374,7 +374,7 @@ class fMailbox
                                if (!empty($pieces[1])) {
                                        
preg_match_all('#(\w+)=("([^"]+)"|([^\s;]+))(?=;|$)#', $pieces[1], $matches, 
PREG_SET_ORDER);
                                        foreach ($matches as $match) {
-                                               $fields[$match[1]] = 
self::decodeHeader(!empty($match[4]) ? $match[4] : $match[3]);
+                                               $fields[strtolower($match[1])] 
= self::decodeHeader(!empty($match[4]) ? $match[4] : $match[3]);
                                        }
                                }
                                $headers[$header]['fields'] = $fields;


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to