summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-18 15:43:13 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-22 09:32:14 +0100
commit6f00729124053a8348f95a53d318317eb6d583fc (patch)
tree46650e0d86f9ab921cccc324fbc1df5b017c1318 /lib/public/util.php
parent152e72c4fcf7d4003924818fae9b1c2f86d6cd2a (diff)
downloadnextcloud-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.php4
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();
+ }
}
/**