diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-05-29 08:38:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 08:38:45 +0200 |
commit | ccd8da66f20394555b27eb65e5682ffc140454eb (patch) | |
tree | 92d5bf108fe708eb5f99b7ca112676ce6b76ce17 | |
parent | d1af727688335422027c366885fb4f61eda2844d (diff) | |
parent | 14e8930a5fc4bb27409777866f66911be45936c3 (diff) | |
download | nextcloud-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.php | 16 |
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 |