From 7a64053cb818931e38af8c9138a259a711ea4da7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 7 Jul 2014 19:37:19 -0300 Subject: Improve javascript code and remove CSP errors --- app/Controller/Base.php | 2 +- app/Templates/board_index.php | 2 -- app/Templates/board_task.php | 6 +++--- app/Templates/file_show.php | 2 +- app/Templates/layout.php | 1 + app/Templates/task_edit.php | 16 +++++++--------- app/Templates/task_layout.php | 4 +--- app/Templates/task_new.php | 4 +--- 8 files changed, 15 insertions(+), 22 deletions(-) (limited to 'app') diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 25a72f15..8890db4c 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -107,7 +107,7 @@ abstract class Base $this->session->open(BASE_URL_DIRECTORY, SESSION_SAVE_PATH); // HTTP secure headers - $this->response->csp(); + $this->response->csp(array('style-src' => "'self' 'unsafe-inline'")); $this->response->nosniff(); $this->response->xss(); $this->response->hsts(); diff --git a/app/Templates/board_index.php b/app/Templates/board_index.php index 4b9b107c..c168d11a 100644 --- a/app/Templates/board_index.php +++ b/app/Templates/board_index.php @@ -29,5 +29,3 @@ - - diff --git a/app/Templates/board_task.php b/app/Templates/board_task.php index 89f768e0..2c82b375 100644 --- a/app/Templates/board_task.php +++ b/app/Templates/board_task.php @@ -20,13 +20,13 @@ - # - + # - - + - + diff --git a/app/Templates/file_show.php b/app/Templates/file_show.php index 674861dd..b570de2d 100644 --- a/app/Templates/file_show.php +++ b/app/Templates/file_show.php @@ -8,7 +8,7 @@ - , + , diff --git a/app/Templates/layout.php b/app/Templates/layout.php index 22440bb7..2b66c685 100644 --- a/app/Templates/layout.php +++ b/app/Templates/layout.php @@ -10,6 +10,7 @@ + diff --git a/app/Templates/task_edit.php b/app/Templates/task_edit.php index 07c3539b..0f1ec6f7 100644 --- a/app/Templates/task_edit.php +++ b/app/Templates/task_edit.php @@ -1,11 +1,11 @@
@@ -50,14 +50,12 @@
- - - - - + + + + +
- - diff --git a/app/Templates/task_layout.php b/app/Templates/task_layout.php index cc711b78..9a6bbd00 100644 --- a/app/Templates/task_layout.php +++ b/app/Templates/task_layout.php @@ -13,6 +13,4 @@ - - - + \ No newline at end of file diff --git a/app/Templates/task_new.php b/app/Templates/task_new.php index 392330ae..5e4e3ee6 100644 --- a/app/Templates/task_new.php +++ b/app/Templates/task_new.php @@ -49,6 +49,4 @@ - - - + \ No newline at end of file -- cgit v1.2.3