Merge pull request #15780 from nextcloud/td/depremove/callCheck

Remove deprecated function callCheck
This commit is contained in:
Roeland Jago Douma 2019-05-29 08:38:45 +02:00 committed by GitHub
commit ccd8da66f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -360,22 +360,6 @@ class Util {
return self::$token;
}
/**
* 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
*