aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/ScannersController.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers/ScannersController.php')
-rw-r--r--h-source/Application/Controllers/ScannersController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/ScannersController.php b/h-source/Application/Controllers/ScannersController.php
index 1030fb8..bbdd350 100644
--- a/h-source/Application/Controllers/ScannersController.php
+++ b/h-source/Application/Controllers/ScannersController.php
@@ -70,6 +70,7 @@ class ScannersController extends GenericController
"+checkLength|49" => "driver",
"++checkLength|49" => "kernel",
"++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]",
+ "+++checkLength|1000" => "other_names|the <i>other names</i> entry exceeds the value of 1000 characters",
);
$this->m['HardwareModel']->softConditions['insert'] = array(
@@ -78,9 +79,10 @@ class ScannersController extends GenericController
"+checkLength|49" => "driver",
"++checkLength|49" => "kernel",
"++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]",
+ "+++checkLength|1000" => "other_names|the <i>other names</i> entry exceeds the value of 1000 characters",
);
- $this->m['HardwareModel']->setFields('model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface','sanitizeAll');
+ $this->m['HardwareModel']->setFields('model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface,other_names','sanitizeAll');
$argKeys = array(
'page:forceNat' => 1,