mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 03:51:59 +01:00
improved x-original-to suppression
This commit is contained in:
parent
6e8c3e5cda
commit
0e5121ee57
@ -137,6 +137,10 @@ class ModelSearchMessage extends Model {
|
||||
}
|
||||
|
||||
|
||||
if(Registry::get('auditor_user') == 0 && HEADER_LINE_TO_HIDE) {
|
||||
$s = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}(\n(\ |\t){1,}.{1,}){0,}" . "\n/i", "", $s);
|
||||
}
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
@ -190,7 +194,7 @@ class ModelSearchMessage extends Model {
|
||||
$has_journal = $this->remove_journal($msg);
|
||||
|
||||
if(Registry::get('auditor_user') == 0 && HEADER_LINE_TO_HIDE) {
|
||||
$msg = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}\n/i", "", $msg);
|
||||
$msg = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}(\n(\ |\t){1,}.{1,}){0,}" . "\n/i", "", $msg);
|
||||
}
|
||||
|
||||
$pos = strpos($msg, "\n\r\n");
|
||||
|
Loading…
Reference in New Issue
Block a user