summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-05-29 08:38:45 +0200
committerGitHub <noreply@github.com>2019-05-29 08:38:45 +0200
commitccd8da66f20394555b27eb65e5682ffc140454eb (patch)
tree92d5bf108fe708eb5f99b7ca112676ce6b76ce17
parentd1af727688335422027c366885fb4f61eda2844d (diff)
parent14e8930a5fc4bb27409777866f66911be45936c3 (diff)
downloadnextcloud-server-ccd8da66f20394555b27eb65e5682ffc140454eb.tar.gz
nextcloud-server-ccd8da66f20394555b27eb65e5682ffc140454eb.zip
Merge pull request #15780 from nextcloud/td/depremove/callCheck
Remove deprecated function callCheck
-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