diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-12-06 21:19:57 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-12-06 21:19:57 +0000 |
commit | 87e2c9d5b67e2cd816da2ad27a9a6b9db8b43a4b (patch) | |
tree | 68fb3b84e425c985dc5b21e153457b3dd6540f0c /h-source/Application/Controllers/IssuesController.php | |
parent | b037354596f218a8bb42920437f8ea358fbabc8a (diff) |
added NorepeatModel and other minor issues
Diffstat (limited to 'h-source/Application/Controllers/IssuesController.php')
-rw-r--r-- | h-source/Application/Controllers/IssuesController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/h-source/Application/Controllers/IssuesController.php b/h-source/Application/Controllers/IssuesController.php index efda83e..53b3c58 100644 --- a/h-source/Application/Controllers/IssuesController.php +++ b/h-source/Application/Controllers/IssuesController.php @@ -36,7 +36,7 @@ class IssuesController extends BaseController $argKeys = array( 'page:forceNat' => 1, - 'token:sanitizeAlphanum' => 'token' + 'token:sanitizeAlphanum' => $this->token, ); $this->setArgKeys($argKeys); @@ -57,7 +57,7 @@ class IssuesController extends BaseController { if ($this->s['registered']->status['status'] === 'logged') { - if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index'.$this->lang,2,'wrong token..'); + if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index/'.$this->lang,2,'wrong token..'); if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) $this->redirect('my/home/'.$this->lang,2,'your account has been blocked..'); @@ -77,7 +77,7 @@ class IssuesController extends BaseController { if ($this->s['registered']->status['status'] === 'logged') { - if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index'.$this->lang,2,'wrong token..'); + if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index/'.$this->lang,2,'wrong token..'); $data['preview_message'] = $this->request->post('message','','sanitizeHtml'); $this->m['IssuesModel']->result = false; @@ -126,7 +126,7 @@ class IssuesController extends BaseController { if ($this->s['registered']->status['status'] === 'logged') { - if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index'.$this->lang,2,'wrong token..'); + if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index/'.$this->lang,2,'wrong token..'); if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) $this->redirect('my/home/'.$this->lang,2,'your account has been blocked..'); @@ -141,7 +141,7 @@ class IssuesController extends BaseController { if ($this->s['registered']->status['status'] === 'logged') { - if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index'.$this->lang,2,'wrong token..'); + if (!$this->s['registered']->checkCsrf($this->viewArgs['token'])) $this->redirect('home/index/'.$this->lang,2,'wrong token..'); $data['preview_message'] = $this->request->post('message','','sanitizeHtml'); $this->m['MessagesModel']->result = false; |