Browse Source

Remove deprecated function callCheck

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v17.0.0beta1
Roeland Jago Douma 5 years ago
parent
commit
14e8930a5f
No account linked to committer's email address
1 changed files with 0 additions and 16 deletions
  1. 0
    16
      lib/public/Util.php

+ 0
- 16
lib/public/Util.php 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
*

Loading…
Cancel
Save