Permalink
Browse files

length fix for search

  • Loading branch information...
josemanimala committed Feb 22, 2012
1 parent 29538c4 commit b9a3b667c8977caf512ba22215fb9712c4b68c6d
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/software_controller.php
@@ -105,7 +105,7 @@ function search() {
#santize and remove any stupid typo errors/ sql injection code
$query = $this -> Sanitize -> paranoid($this->data['Software']['search'],array(' '));
#future handler to ensure that we can limit the search to trigger only for more than N characters
- if (strlen($query) > 3)
+ if (strlen($query) >= 3)
{
#Call to meta Handler
$metaSoftList = $this->metaHandler($query,$query,$query);
@@ -137,7 +137,7 @@ function searchPost()
#santize and remove any stupid typo errors/ sql injection code
$query = $this -> Sanitize -> paranoid($this->data['Software']['search'],array(' '));
#future handler to ensure that we can limit the search to trigger only for more than N characters
- if (strlen($query) > 3)
+ if (strlen($query) >= 3)
{
#Call to meta Handler
$metaSoftList = $this->metaHandler($query,$query,$query);

0 comments on commit b9a3b66

Please sign in to comment.