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/public/util.php | |
parent | 152e72c4fcf7d4003924818fae9b1c2f86d6cd2a (diff) | |
download | nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.tar.gz nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.zip |
Refactor OC_Util::callCheck
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index a9fe0e47de6..493aa0000a5 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -494,7 +494,9 @@ class Util { * @since 4.5.0 */ public static function callCheck() { - \OC_Util::callCheck(); + if (!(\OC::$server->getRequest()->passesCSRFCheck())) { + exit(); + } } /** |