From eb820e55b3e4a7af62038f8f236c37fb6e6c66d9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 12 Apr 2012 19:49:05 +0200 Subject: CSP: add unsafe-inline to style-src chromium rejects inline css with this. Signed-off-by: Florian Pritz --- application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application') diff --git a/application/models/file_mod.php b/application/models/file_mod.php index ffd031ace..48248fe7d 100644 --- a/application/models/file_mod.php +++ b/application/models/file_mod.php @@ -254,7 +254,7 @@ class File_mod extends CI_Model { if (!$can_highlight || $filesize_too_big || !$mode) { foreach (array("X-WebKit-CSP", "X-Content-Security-Policy") as $header_name) { - header("$header_name: allow 'none'; img-src *; media-src *; font-src *; style-src *; script-src 'none'; object-src *; frame-src 'none'; "); + header("$header_name: allow 'none'; img-src *; media-src *; font-src *; style-src * 'unsafe-inline'; script-src 'none'; object-src *; frame-src 'none'; "); } rangeDownload($file, $filedata["filename"], $type); exit(); -- cgit v1.2.3-24-g4f1b