Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
use OC\AppFramework\Http\Request;
use OC_Template;
+use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\IRequest;
use Sabre\DAV\Exception;
use Sabre\DAV\Server;
$this->server->httpResponse->setStatus($httpCode);
$body = $this->generateBody();
$this->server->httpResponse->setBody($body);
+ $csp = new ContentSecurityPolicy();
+ $this->server->httpResponse->addHeader('Content-Security-Policy', $csp->buildPolicy());
$this->sendResponse();
}
/** @param $_ array */
?>
-<span class="error error-wide">
+<div class="body-login-container update">
<h2><?php p($_['title']) ?></h2>
<h3><strong><?php p($l->t('Technical details')) ?></strong></h3>
- <ul>
+ <ul class="infogroup">
<li><?php p($l->t('Remote Address: %s', $_['remoteAddr'])) ?></li>
<li><?php p($l->t('Request ID: %s', $_['requestID'])) ?></li>
</ul>
-</span>
+</div>