Skip to content

Commit

Permalink
Merge pull request #88 from nextcloud/add-strict-cookie-check-also-to…
Browse files Browse the repository at this point in the history
…-config-js

[stable9] Add strict config check to config.js
  • Loading branch information
MorrisJobke authored Jun 15, 2016
2 parents 7a5093c + 6d559ff commit 7d3bc95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/js/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
*
*/

if(!\OC::$server->getRequest()->passesStrictCookieCheck()) {
die();
}

// Set the content type to Javascript
header("Content-type: text/javascript");

Expand Down

0 comments on commit 7d3bc95

Please sign in to comment.