aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/GenericController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-30 07:10:20 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-30 07:10:20 +0000
commit15b8f0b3a4a573af35ddbd478cbd7d4f1f8cea4c (patch)
tree79d6b076cdc01494b35ee3084a83729c82ab05e6 /h-source/Application/Controllers/GenericController.php
parent0c83490f6220ec2fbf770ce6f840325f6df53b10 (diff)
fixed little error: no submission is possible when updating the website - corrected also for anonymous users
Diffstat (limited to 'h-source/Application/Controllers/GenericController.php')
-rw-r--r--h-source/Application/Controllers/GenericController.php4
1 files changed, 3 insertions, 1 deletions
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