From 878c361f1f863d889ffb7e2c2fff03e3cc466efd Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 24 Mar 2013 23:49:52 +0100 Subject: [PATCH] fixed an attachment download issue --- webui/model/search/message.php | 2 +- webui/view/theme/default/templates/common/layout-audit.tpl | 2 +- webui/view/theme/default/templates/common/layout-search.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 6354568e..4c42bd5c 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -62,7 +62,7 @@ class ModelSearchMessage extends Model { $s = substr($data, 0, 4096); $s = preg_replace("/(\r|\n)/", "", $s); - if(!preg_replace("/\s/", $s)) { + if(!preg_match("/\s/", $s)) { return base64_decode(preg_replace("/\s/", "", $data)); } diff --git a/webui/view/theme/default/templates/common/layout-audit.tpl b/webui/view/theme/default/templates/common/layout-audit.tpl index 6d9e1a91..7fe96426 100644 --- a/webui/view/theme/default/templates/common/layout-audit.tpl +++ b/webui/view/theme/default/templates/common/layout-audit.tpl @@ -37,7 +37,7 @@ - + diff --git a/webui/view/theme/default/templates/common/layout-search.tpl b/webui/view/theme/default/templates/common/layout-search.tpl index e0163f0e..29f1f373 100644 --- a/webui/view/theme/default/templates/common/layout-search.tpl +++ b/webui/view/theme/default/templates/common/layout-search.tpl @@ -39,7 +39,7 @@ - +