From 79cb1a8f25fcce197f7dabbe7a007f99ce5f4c33 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 13 Nov 2017 16:17:14 -0700 Subject: [PATCH] Refactor and enforce Content-Security-Policy --- app.php | 4 +-- lib/getmsgs.php | 8 +++--- lib/gettaskman.php | 22 +++++++++------- lib/gettasks.php | 35 +++++++++++++++++++++---- mobile/index.php | 1 + pages.php | 13 +++++++--- pages/messages.php | 29 +++++---------------- pages/mytasks.php | 10 +++++--- pages/taskman.php | 8 +++--- required.php | 45 ++++++++++++++++++++++++++++++++- static/css/app.css | 59 +++++++++++++++++++++++++++++++++++++++++++ static/js/messages.js | 29 ++++++++++++++++++++- static/js/taskman.js | 3 +++ static/js/tasks.js | 21 +++++++++++++++ 14 files changed, 232 insertions(+), 55 deletions(-) create mode 100644 static/js/taskman.js create mode 100644 static/js/tasks.js diff --git a/app.php b/app.php index 9ac7a9b..277f904 100644 --- a/app.php +++ b/app.php @@ -74,7 +74,7 @@ if (!is_empty($_GET['page'])) { } ?> - + -
+
diff --git a/lib/getmsgs.php b/lib/getmsgs.php index 5e57ae6..7c6913c 100644 --- a/lib/getmsgs.php +++ b/lib/getmsgs.php @@ -54,11 +54,11 @@ if (count($messages) > 0) {
$usercache[$msg['from']]['username']]) ?>">   $to['username']]) ?>">
-
+
-
+ diff --git a/lib/gettaskman.php b/lib/gettaskman.php index 3a3c0f7..da77439 100644 --- a/lib/gettaskman.php +++ b/lib/gettaskman.php @@ -56,7 +56,7 @@ if (count($tasks) > 0) { ?>
-

+

0) {

- +