diff --git a/ReportToolz/vdb.php b/ReportToolz/vdb.php index 1b50e30..fb5a3ca 100755 --- a/ReportToolz/vdb.php +++ b/ReportToolz/vdb.php @@ -53,12 +53,12 @@ foreach ($vuln as $key => $value) { $flag = 0; - if (strpos($vuln[$key]['title'], $filter->getParam("search")) == true){ $flag = 1; } - if (strpos($vuln[$key]['description'], $filter->getParam("search")) == true){ $flag = 1; } - if (strpos($vuln[$key]['tech_description'], $filter->getParam("search")) == true){ $flag = 1; } - if (strpos($vuln[$key]['impact'], $filter->getParam("search")) == true){ $flag = 1; } - if (strpos($vuln[$key]['solution'], $filter->getParam("search")) == true){ $flag = 1; } - if (strpos($vuln[$key]['tags'], $filter->getParam("search")) == true){ $flag = 1; } + if (strpos(strtolower($vuln[$key]['title']), strtolower($filter->getParam("search"))) == true){ $flag = 1; } + if (strpos(strtolower($vuln[$key]['description']), strtolower($filter->getParam("search"))) == true){ $flag = 1; } + if (strpos(strtolower($vuln[$key]['tech_description']), strtolower($filter->getParam("search"))) == true){ $flag = 1; } + if (strpos(strtolower($vuln[$key]['impact']), strtolower($filter->getParam("search"))) == true){ $flag = 1; } + if (strpos(strtolower($vuln[$key]['solution']), strtolower($filter->getParam("search"))) == true){ $flag = 1; } + if (strpos(strtolower($vuln[$key]['tags']), strtolower($filter->getParam("search"))) == true){ $flag = 1; } if($flag == 1){ // found search term $ref = str_pad($vuln[$key]['count'], 7); $title = str_pad($vuln[$key]['title'], 50);