From 877cf8eac86eb70a07f16592865cb99624430195 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 3 Oct 2013 10:52:39 +0200 Subject: [PATCH] Removed AbstractSecureForm --- .../lib/form/AbstractSecureForm.class.php | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 wcfsetup/install/files/lib/form/AbstractSecureForm.class.php diff --git a/wcfsetup/install/files/lib/form/AbstractSecureForm.class.php b/wcfsetup/install/files/lib/form/AbstractSecureForm.class.php deleted file mode 100644 index 46ee24acd5..0000000000 --- a/wcfsetup/install/files/lib/form/AbstractSecureForm.class.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage form - * @category Community Framework - */ -abstract class AbstractSecureForm extends AbstractForm { - /** - * @see wcf\form\IForm::validate() - */ - public function validate() { - parent::validate(); - - $this->checkSecurityToken(); - } - - /** - * Validates the security token. - */ - protected function checkSecurityToken() { - if (!isset($_POST['t']) || !WCF::getSession()->checkSecurityToken($_POST['t'])) { - throw new UserInputException('__securityToken'); - } - } -} -- 2.20.1