Filter _ search terms

develop
Sven Slootweg 12 years ago
parent a9d2576eaf
commit fa74d394a7

@ -31,6 +31,7 @@ else
{ {
$db_query_terms[] = "`Title` LIKE ?"; $db_query_terms[] = "`Title` LIKE ?";
$term = str_replace("%", "\%", $term); $term = str_replace("%", "\%", $term);
$term = str_replace("_", "\_", $term);
$valid_term = $valid_term || (strlen($term) >= 2); $valid_term = $valid_term || (strlen($term) >= 2);
$db_query_arguments[] = "%{$term}%"; $db_query_arguments[] = "%{$term}%";
} }

Loading…
Cancel
Save