fix: [API] Fixed the handling of AND-ed and OR-ed URL parameters

pull/4075/head
iglocska 2019-01-26 10:39:20 +01:00
parent 508977f57c
commit 5c97a8725e
1 changed files with 4 additions and 1 deletions

View File

@ -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'])) {