From 71a815b64e76e930388b50f7afa5fcf43e01ac60 Mon Sep 17 00:00:00 2001 From: Robert Korulczyk Date: Sun, 3 Apr 2016 23:47:35 +0200 Subject: [PATCH] Remove useless CSRF meta tags. --- ElFinderHelper.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ElFinderHelper.php b/ElFinderHelper.php index 0823a23..240f0a8 100644 --- a/ElFinderHelper.php +++ b/ElFinderHelper.php @@ -61,13 +61,6 @@ public static function registerAssets() { $assetsDir = self::getAssetsDir(); $cs = Yii::app()->getClientScript(); - if (Yii::app()->getRequest()->enableCsrfValidation) { - $csrfTokenName = Yii::app()->request->csrfTokenName; - $csrfToken = Yii::app()->request->csrfToken; - $cs->registerMetaTag($csrfToken, 'csrf-token', null, array(), 'csrf-token'); - $cs->registerMetaTag($csrfTokenName, 'csrf-param', null, array(), 'csrf-param'); - } - // jQuery and jQuery UI $cs->registerCoreScript('jquery'); $cs->registerCoreScript('jquery.ui');