Skip to content

Commit

Permalink
Fixed issue #9118: Image Browse Server not working due to incorrect c…
Browse files Browse the repository at this point in the history
…ookieDomain when using reverse proxy URL
  • Loading branch information
c-schmitz committed May 11, 2016
1 parent afce56f commit c5ff180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/htmleditor_helper.php
Expand Up @@ -23,7 +23,7 @@ function initKcfinder()
'flash' => $sAllowedExtensions,
'images' => $sAllowedExtensions
);
if (Yii::app()->getRequest()->enableCsrfValidation)
if (Yii::app()->getRequest()->enableCsrfValidation && !empty(Yii::app()->getRequest()->csrfCookie))
{
$_SESSION['KCFINDER']['cookieDomain'] = Yii::app()->getRequest()->csrfCookie->domain;
}
Expand Down

0 comments on commit c5ff180

Please sign in to comment.