mirror of https://github.com/MISP/MISP
fix: [API] Fixed the handling of AND-ed and OR-ed URL parameters
parent
508977f57c
commit
5c97a8725e
|
@ -628,13 +628,16 @@ class AppController extends Controller
|
|||
$data[$p] = str_replace(';', ':', $data[$p]);
|
||||
}
|
||||
if (isset($options['named_params'][$p])) {
|
||||
$data[$p] = $options['named_params'][$p];
|
||||
$data[$p] = str_replace(';', ':', $options['named_params'][$p]);
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach ($data as $k => $v) {
|
||||
if (!is_array($data[$k])) {
|
||||
$data[$k] = trim($data[$k]);
|
||||
if (strpos($data[$k], '||')) {
|
||||
$data[$k] = explode('||', $data[$k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($options['additional_delimiters'])) {
|
||||
|
|
Loading…
Reference in New Issue