diff options
Diffstat (limited to 'lib/private/legacy/eventsource.php')
-rw-r--r-- | lib/private/legacy/eventsource.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/eventsource.php b/lib/private/legacy/eventsource.php index 74beb157e18..1a8061c0ed2 100644 --- a/lib/private/legacy/eventsource.php +++ b/lib/private/legacy/eventsource.php @@ -81,7 +81,7 @@ class OC_EventSource implements \OCP\IEventSource { header('Location: '.\OC::$WEBROOT); exit(); } - if (!(\OC::$server->getRequest()->passesCSRFCheck())) { + if (!\OC::$server->getRequest()->passesCSRFCheck()) { $this->send('error', 'Possible CSRF attack. Connection will be closed.'); $this->close(); exit(); |