diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2020-10-28 15:44:28 +0300 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2020-11-06 15:22:02 +0300 |
commit | 237ce80d4a8bd3b338913b28d75ad9c30c2a8571 (patch) | |
tree | 61a1be07c7feda059da342f69fc1c66f2b83133b /lib/Controller/MessagesController.php | |
parent | 6828335e4a3f8c533c25f03d2e067a20c7cb5be2 (diff) |
Responsive mail iframe
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
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 |