Skip to content

Commit

Permalink
Remove useless CSRF meta tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob006 committed Apr 3, 2016
1 parent 40c2745 commit 71a815b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ElFinderHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 71a815b

Please sign in to comment.