From 24471305bd198ef0980346d2ab95952392ddb351 Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 24 Jan 2016 15:25:54 +0100 Subject: [PATCH] message preview fix --- webui/model/search/message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 65c4e4a8..00bb0d30 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -409,8 +409,8 @@ class ModelSearchMessage extends Model { if(preg_match("/^To:/i", $l) || preg_match("/^Cc:/i", $l)){ $state = "TO"; } if(preg_match("/^Date:/i", $l)){ $state = "DATE"; } if(preg_match("/^Subject:/i", $l)){ $state = "SUBJECT"; } - if(preg_match("/^Content-Type:/", $l)){ $state = "CONTENT_TYPE"; } - if(preg_match("/^Content-Disposition:/", $l)){ $state = "CONTENT_DISPOSITION"; } + if(preg_match("/^Content-Type:/i", $l)){ $state = "CONTENT_TYPE"; } + if(preg_match("/^Content-Disposition:/i", $l)){ $state = "CONTENT_DISPOSITION"; } $l = preg_replace("//", ">", $l);