- Bugfix: fixed problem with search terms not being escaped properly.
parent
886ae2bf15
commit
3bb6ddee4b
|
@ -112,7 +112,7 @@ function do_search($search_array) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put the next search word into the query and do the query
|
// Put the next search word into the query and do the query
|
||||||
$query = preg_replace("'\%'", $word, $select);
|
$query = preg_replace("'\%'", check_query($word), $select);
|
||||||
$result = db_query($query);
|
$result = db_query($query);
|
||||||
|
|
||||||
// If we got any results
|
// If we got any results
|
||||||
|
|
|
@ -112,7 +112,7 @@ function do_search($search_array) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put the next search word into the query and do the query
|
// Put the next search word into the query and do the query
|
||||||
$query = preg_replace("'\%'", $word, $select);
|
$query = preg_replace("'\%'", check_query($word), $select);
|
||||||
$result = db_query($query);
|
$result = db_query($query);
|
||||||
|
|
||||||
// If we got any results
|
// If we got any results
|
||||||
|
|
Loading…
Reference in New Issue