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 @@ - +