diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 15:43:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-22 09:32:14 +0100 |
commit | 6f00729124053a8348f95a53d318317eb6d583fc (patch) | |
tree | 46650e0d86f9ab921cccc324fbc1df5b017c1318 /lib/private/eventsource.php | |
parent | 152e72c4fcf7d4003924818fae9b1c2f86d6cd2a (diff) | |
download | nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.tar.gz nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.zip |
Refactor OC_Util::callCheck
Diffstat (limited to 'lib/private/eventsource.php')
-rw-r--r-- | lib/private/eventsource.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/eventsource.php b/lib/private/eventsource.php index c076b87ddd9..0e98bdc2628 100644 --- a/lib/private/eventsource.php +++ b/lib/private/eventsource.php @@ -76,7 +76,7 @@ class OC_EventSource implements \OCP\IEventSource { } else { header("Content-Type: text/event-stream"); } - if (!OC_Util::isCallRegistered()) { + if (!(\OC::$server->getRequest()->passesCSRFCheck())) { $this->send('error', 'Possible CSRF attack. Connection will be closed.'); $this->close(); exit(); |