security update core+modules
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
*
|
||||
* To return:
|
||||
* the complete search path
|
||||
*
|
||||
*/
|
||||
|
||||
function _custom_search_lucenapi_search($variables) {
|
||||
@@ -20,12 +19,16 @@ function _custom_search_lucenapi_search($variables) {
|
||||
$keys = array();
|
||||
|
||||
if (count($variables['types']) && !in_array('all', $variables['types'])) {
|
||||
foreach ($variables['types'] as $t) $keys["type[$t]"] = $t;
|
||||
foreach ($variables['types'] as $t) {
|
||||
$keys["type[$t]"] = $t;
|
||||
}
|
||||
}
|
||||
|
||||
if (module_exists('taxonomy') && count($variables['terms'])) {
|
||||
foreach ($variables['terms'] as $t) $keys["category[$t]"] = $t;
|
||||
foreach ($variables['terms'] as $t) {
|
||||
$keys["category[$t]"] = $t;
|
||||
}
|
||||
}
|
||||
|
||||
return array('path' => $type, 'query' => $keys);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user