aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-08 11:23:46 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-08 11:23:46 +0000
commit49817ee26aca932522b97f790bc6d56957ca541c (patch)
treea5bed5d0418e452845cbbb67a131fceb532b1138
parentdb9f04b32b3fe04e09f16335207870264df60e56 (diff)
improved search page
-rw-r--r--h-source/Application/Controllers/SearchController.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/h-source/Application/Controllers/SearchController.php b/h-source/Application/Controllers/SearchController.php
index 3d65d2c..9633a0e 100644
--- a/h-source/Application/Controllers/SearchController.php
+++ b/h-source/Application/Controllers/SearchController.php
@@ -128,11 +128,11 @@ class SearchController extends BaseController
if (next($lspciArray) !== false)
{
$item = trim(current($lspciArray));
- if( !preg_match( '/^[a-zA-Z0-9\-\_\.\,\;\:\+\s\(\)\/\[\]\#]+$/i', $item ) )
- {
- $flag = false;
- break;
- }
+// if( !preg_match( '/^[a-zA-Z0-9\-\_\.\,\;\:\+\s\(\)\/\[\]\#]+$/i', $item ) )
+// {
+// $flag = false;
+// break;
+// }
if( preg_match( '/Class\:(.*)\[(.*)\]/i', $item, $matches ) )
{
$temp['className'] = sanitizeAll($matches[1]);
@@ -154,11 +154,11 @@ class SearchController extends BaseController
if (next($lspciArray) !== false)
{
$item = trim(current($lspciArray));
- if( !preg_match( '/^[a-zA-Z0-9\-\_\.\,\;\:\+\s\(\)\/\[\]\#]+$/i', $item ) )
- {
- $flag = false;
- break;
- }
+// if( !preg_match( '/^[a-zA-Z0-9\-\_\.\,\;\:\+\s\(\)\/\[\]\#]+$/i', $item ) )
+// {
+// $flag = false;
+// break;
+// }
if( preg_match( '/Vendor\:(.*)\[(.*)\]/i', $item, $matches ) )
{
$temp['vendorName'] = sanitizeAll($matches[1]);
@@ -180,11 +180,11 @@ class SearchController extends BaseController
if (next($lspciArray) !== false)
{
$item = trim(current($lspciArray));
- if( !preg_match( '/^[a-zA-Z0-9\-\_\.\,\;\:\+\s\(\)\/\[\]\#]+$/i', $item ) )
- {
- $flag = false;
- break;
- }
+// if( !preg_match( '/^[a-zA-Z0-9\-\_\.\,\;\:\+\s\(\)\/\[\]\#]+$/i', $item ) )
+// {
+// $flag = false;
+// break;
+// }
if( preg_match( '/Device\:(.*)\[(.*)\]/i', $item, $matches ) )
{
$temp['deviceName'] = sanitizeAll($matches[1]);