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:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-07-14 14:05:44 +0300
committerGitHub <noreply@github.com>2021-07-14 14:05:44 +0300
commita59a5fbdbb82eb6403c6d3e1694b90695d8c1638 (patch)
treea810e90f26df8c40697e46fa795d4775f6c50d9d
parentbd6d13b0686887c4a65fc7896921ebb8e7d2d7c8 (diff)
parentbbc7457855f5ab523a5ff1b85d054150db2f1c87 (diff)
Merge pull request #5329 from nextcloud/bug/noid/html-skeleton
Add html structure
-rw-r--r--lib/Http/HtmlResponse.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Http/HtmlResponse.php b/lib/Http/HtmlResponse.php
index f880c077f..645bb5d41 100644
--- a/lib/Http/HtmlResponse.php
+++ b/lib/Http/HtmlResponse.php
@@ -83,6 +83,6 @@ class HtmlResponse extends Response {
return $this->content;
}
- return '<script nonce="' . $this->nonce . '" src="' . $this->scriptUrl . '"></script>' . $this->content;
+ return '<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script nonce="' . $this->nonce . '" src="' . $this->scriptUrl . '"></script></head><body>' . $this->content . '</body></html>';
}
}