From 072dda67004ae6cd7fa2b9d9aedcb43a22649f0e Mon Sep 17 00:00:00 2001 From: stekkel Date: Mon, 19 Aug 2002 08:21:43 +0000 Subject: [PATCH] preg_match should look at field instead of value git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3354 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/mime.class.php b/class/mime.class.php index 98b9e602..fcf5d4e1 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -60,7 +60,7 @@ class rfc822_header { $field = substr($line,0,$pos); $value = trim(substr($line,$pos+1)); - if(!preg_match('/^X.*/',$value)) { + if(!preg_match('/^X.*/i',$field)) { $value = $this->stripComments($value); } $this->parseField($field,$value); -- 2.25.1