Browse Source
Remove deprecated function callCheck
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/15780/head
Roeland Jago Douma
7 years ago
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with
0 additions and
16 deletions
-
lib/public/Util.php
|
|
|
@ -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 |
|
|
|
* |
|
|
|
|