From 14e8930a5fc4bb27409777866f66911be45936c3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 28 May 2019 22:23:28 +0200 Subject: [PATCH] Remove deprecated function callCheck Signed-off-by: Roeland Jago Douma --- lib/public/Util.php | 16 ---------------- 1 file changed, 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 @@ -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 * -- 2.39.5