Skip to content
Snippets Groups Projects
Commit 2afab1d2 authored by xamgore's avatar xamgore
Browse files

No checks of ajax requests

Not all servers detect HTTP_X_REQUESTED_WITH header.
And now it is possible to load excel files.
parent d46227e3
Branches
Tags
No related merge requests found
......@@ -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));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment