From 9ddefa979a12aff2334d6e7048e142cfdef5bb89 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 29 Jan 2018 15:56:30 -0800 Subject: Add CSRF check for task and project files upload --- app/Helper/AppHelper.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Helper') diff --git a/app/Helper/AppHelper.php b/app/Helper/AppHelper.php index 3cefd1c5..3a0a2428 100644 --- a/app/Helper/AppHelper.php +++ b/app/Helper/AppHelper.php @@ -12,6 +12,11 @@ use Kanboard\Core\Base; */ class AppHelper extends Base { + public function getToken() + { + return $this->token; + } + public function isAjax() { return $this->request->isAjax(); -- cgit v1.2.3