aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/ThreegcardsController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-01-31 22:18:02 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-01-31 22:18:02 +0000
commit6fceaf205a341c2134457bf9f24a7a7f2fba63e0 (patch)
tree0ec7e265c878693b654b70b4d71641c2fa7f8726 /h-source/Application/Controllers/ThreegcardsController.php
parent3b289dfbfd66fe63b1b596d9c451c848d1302840 (diff)
characters / [ and ] are now allowed for the model name
Diffstat (limited to 'h-source/Application/Controllers/ThreegcardsController.php')
-rw-r--r--h-source/Application/Controllers/ThreegcardsController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/ThreegcardsController.php b/h-source/Application/Controllers/ThreegcardsController.php
index 5536da9..e0ee3fe 100644
--- a/h-source/Application/Controllers/ThreegcardsController.php
+++ b/h-source/Application/Controllers/ThreegcardsController.php
@@ -45,7 +45,7 @@ class ThreegcardsController extends GenericController
$this->m['HardwareModel']->strongConditions['update'] = array(
"checkIsStrings|".ThreeGcards::vendorsList() => "vendor",
"checkNotEmpty" => "model|you have to fill the <i>model name</i> entry",
- "checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\(\)]+$/" => "model|characters not allowed in the <i>model name</i> entry",
+ "checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\(\)\[\]\/]+$/" => "model|characters not allowed in the <i>model name</i> entry",
"checkLength|99" => "model",
"+checkLength|299" => "distribution",
"++checkIsStrings|".ThreeGcards::$commYear => "comm_year",
@@ -56,7 +56,7 @@ class ThreegcardsController extends GenericController
$this->m['HardwareModel']->strongConditions['insert'] = array(
"checkIsStrings|".ThreeGcards::vendorsList() => "vendor",
"checkNotEmpty" => "model|you have to fill the <i>model name</i> entry",
- "checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\(\)]+$/" => "model|characters not allowed in the <i>model name</i> entry",
+ "checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\(\)\[\]\/]+$/" => "model|characters not allowed in the <i>model name</i> entry",
"checkLength|99" => "model",
"+checkLength|299" => "distribution",
"++checkIsStrings|".ThreeGcards::$commYear => "comm_year",