summaryrefslogtreecommitdiffstats
path: root/lib/public/Util.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-05-28 22:23:28 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-05-28 22:23:28 +0200
commit14e8930a5fc4bb27409777866f66911be45936c3 (patch)
tree430ba722bc917d699e2cc7d45a47dda07d8ad47b /lib/public/Util.php
parentabeea8b0b96a21a1d1d214fb789c4fbccf98adc5 (diff)
downloadnextcloud-server-14e8930a5fc4bb27409777866f66911be45936c3.tar.gz
nextcloud-server-14e8930a5fc4bb27409777866f66911be45936c3.zip
Remove deprecated function callCheck
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r--lib/public/Util.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 3a33a10c620..302eb8d035e 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -361,22 +361,6 @@ class Util {
}
/**
- * Check an ajax get/post call if the request token is valid. exit if not.
- * @since 4.5.0
- * @deprecated 9.0.0 Use annotations based on the app framework.
- */
- public static function callCheck() {
- if(!\OC::$server->getRequest()->passesStrictCookieCheck()) {
- header('Location: '.\OC::$WEBROOT);
- exit();
- }
-
- if (!\OC::$server->getRequest()->passesCSRFCheck()) {
- exit();
- }
- }
-
- /**
* Used to sanitize HTML
*
* This function is used to sanitize HTML and should be applied on any