Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
craigh committed Jul 14, 2017
1 parent 98839d7 commit 8d4d255
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private function checkAjaxToken($token = null)
if (!$currentRequest->isXmlHttpRequest()) {
throw new \Exception();
}
// @todo how to SET the $_SERVER['HTTP_X_ZIKULA_AJAX_TOKEN'] ?
// how/where is $_SERVER['HTTP_X_ZIKULA_AJAX_TOKEN'] set? refs #3454
$headerToken = ($currentRequest->server->has('HTTP_X_ZIKULA_AJAX_TOKEN')) ? $currentRequest->server->get('HTTP_X_ZIKULA_AJAX_TOKEN') : null;
if ($headerToken == $currentRequest->getSession()->getId()) {
return;
Expand Down

0 comments on commit 8d4d255

Please sign in to comment.