diff --git a/frontend/modules/api/search.php b/frontend/modules/api/search.php index 943b545..8def180 100644 --- a/frontend/modules/api/search.php +++ b/frontend/modules/api/search.php @@ -31,6 +31,7 @@ else { $db_query_terms[] = "`Title` LIKE ?"; $term = str_replace("%", "\%", $term); + $term = str_replace("_", "\_", $term); $valid_term = $valid_term || (strlen($term) >= 2); $db_query_arguments[] = "%{$term}%"; }