From 15b8f0b3a4a573af35ddbd478cbd7d4f1f8cea4c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 30 Jul 2011 07:10:20 +0000 Subject: fixed little error: no submission is possible when updating the website - corrected also for anonymous users --- h-source/Application/Controllers/GenericController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers/GenericController.php') diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index 829fe05..4ac197c 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -63,7 +63,9 @@ class GenericController extends BaseController protected function insert($lang = 'en', $token = '') { $this->shift(2); - + + if ( strcmp($this->_updating,'no') !== 0 ) $this->redirect('users/login/'.$this->lang,0); + $clean['token'] = sanitizeAlphanum($token); $data['descriptionPreview'] = null; //contains the HTML of the preview of the description entry -- cgit v1.2.3