Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2020-10-28 15:44:28 +0300
committerRichard Steinmetz <richard@steinmetz.cloud>2020-11-06 15:22:02 +0300
commit237ce80d4a8bd3b338913b28d75ad9c30c2a8571 (patch)
tree61a1be07c7feda059da342f69fc1c66f2b83133b /lib/Controller/MessagesController.php
parent6828335e4a3f8c533c25f03d2e067a20c7cb5be2 (diff)
Responsive mail iframe
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-xlib/Controller/MessagesController.php6
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