com web/news: Ensure the header fields are lowercase: lib/fMailbox.php

From: Date: Sat, 23 Jan 2016 06:08:52 +0000
Subject: com web/news: Ensure the header fields are lowercase: lib/fMailbox.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-24515@lists.php.net to get a copy of this message
Commit: 217cdbcce8c5cfbf215fab288e41336dcf1bde28 Author: Ben Ramsey <ben@benramsey.com> 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;

« previous php.webmaster (#24515) next »