diff options
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-x | lib/Controller/MessagesController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index b9882970b..9c4dbb62c 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -336,12 +336,13 @@ class MessagesController extends Controller { * @TrapError * * @param int $id + * @param bool $plain do not inject scripts if true (default=false) * * @return HtmlResponse|TemplateResponse * * @throws ClientException */ - public function getHtmlBody(int $id): Response { + public function getHtmlBody(int $id, bool $plain=false): Response { try { try { $message = $this->mailManager->getMessage($this->currentUserId, $id); @@ -364,7 +365,8 @@ class MessagesController extends Controller { true )->getHtmlBody( $id - ) + ), + $plain ); // Harden the default security policy |