From 91074ed6176e1a8710bf4da7dbfeedf4e71f0c5b Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 21 Feb 2018 14:56:38 +0100 Subject: [PATCH] gui: remove X-Piler-Envelope-To: header lines for non auditor users Signed-off-by: Janos SUTO --- webui/model/search/message.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 43045115..3c942594 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -69,6 +69,10 @@ class ModelSearchMessage extends Model { $s = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}(\n(\ |\t){1,}.{1,}){0,}" . "\n/i", "", $s); } + if(Registry::get('auditor_user') == 0){ + $s = preg_replace("/X-Piler-Envelope-To:.{1,}\n/", "", $s); + } + return $s; }