Remove deprecated function callCheck
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
abeea8b0b9
commit
14e8930a5f
|
@ -360,22 +360,6 @@ class Util {
|
||||||
return self::$token;
|
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
|
* Used to sanitize HTML
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue