A fix...
In the following components... These fix the SQL issue
./dbtech/gallery/modules/gallery/actions/search.php
PHP Code:
for($n=0;$n < count($query_array);$n++)
{
$element = preg_replace("/[^A-Za-z0-9]/", '', $query_array[$n]); //remove all special characters
if ($element != "")
{
$boolean_query .= '+' . $element . '* ';
}
}
./dbtech/gallery/modules/gallery/functions/class_module.php
PHP Code:
for($i=0; $i < count($query_array); $i++)
{
$element = preg_replace("/[^A-Za-z0-9]/", '', $query_array[$i]); //remove all special characters
if ($element != "")
{
$boolean_query .= '+' . $element . '* ';
}
}
PHP Code:
for($n=0;$n < count($criteria_array);$n++)
{
$element = preg_replace("/[^A-Za-z0-9]/", '', $criteria_array[$n]); //remove all special characters
if ($element != "")
{
$boolean_query .= '+' . $element . '* ';
}
}
PHP Code:
for($n=0;$n < count($criteria_array);$n++)
{
$element = preg_replace("/[^A-Za-z0-9]/", '', $criteria_array[$n]); //remove all special characters
if ($element != "")
{
$boolean_query .= '+' . $element . '* ';
}
}