From 2afab1d297bdc1c9ec1b3eef6dc681dc9c5f30f1 Mon Sep 17 00:00:00 2001 From: xamgore <xamgore@ya.ru> Date: Tue, 16 Jun 2015 01:56:09 +0300 Subject: [PATCH] No checks of ajax requests Not all servers detect HTTP_X_REQUESTED_WITH header. And now it is possible to load excel files. --- ~dev_rating/application/classes/Controller/Handler.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/~dev_rating/application/classes/Controller/Handler.php b/~dev_rating/application/classes/Controller/Handler.php index 101208941..f39efc26e 100644 --- a/~dev_rating/application/classes/Controller/Handler.php +++ b/~dev_rating/application/classes/Controller/Handler.php @@ -12,9 +12,6 @@ class Controller_Handler extends Controller protected $user; public function before() { - if (!$this->request->is_ajax()) - throw new HTTP_Exception_404(); - $this->user = User::instance(); $this->post = Validation::factory(Arr::map('trim', $_POST)); $this->get = Validation::factory(Arr::map('trim', $_GET)); -- GitLab