Commits

Bogdan Savluk  committed 190df24

remove duplicated CSRF protection meta tags

  • Participants
  • Parent commits 8bc210e

Comments (0)

Files changed (2)

File ElFinderWidget.php

         if (Yii::app()->getRequest()->enableCsrfValidation) {
             $csrfTokenName = Yii::app()->request->csrfTokenName;
             $csrfToken = Yii::app()->request->csrfToken;
-            Yii::app()->clientScript->registerMetaTag($csrfToken, 'csrf-token');
-            Yii::app()->clientScript->registerMetaTag($csrfTokenName, 'csrf-param');
+            Yii::app()->clientScript->registerMetaTag($csrfToken, 'csrf-token', null, array(),'csrf-token');
+            Yii::app()->clientScript->registerMetaTag($csrfTokenName, 'csrf-param', null, array(), 'csrf-param');
         }
 
         // jQuery and jQuery UI

File TinyMceElFinder.php

         if (Yii::app()->getRequest()->enableCsrfValidation) {
             $csrfTokenName = Yii::app()->request->csrfTokenName;
             $csrfToken = Yii::app()->request->csrfToken;
-            Yii::app()->clientScript->registerMetaTag($csrfToken, 'csrf-token');
-            Yii::app()->clientScript->registerMetaTag($csrfTokenName, 'csrf-param');
+            Yii::app()->clientScript->registerMetaTag($csrfToken, 'csrf-token', null, array(),'csrf-token');
+            Yii::app()->clientScript->registerMetaTag($csrfTokenName, 'csrf-param', null, array(), 'csrf-param');
         }
 
         // jQuery and jQuery UI