|
|
|
|
@ -170,17 +170,21 @@ function upei_roblib_ill_clean_array($values)
|
|
|
|
|
unset($arr['doi']); |
|
|
|
|
unset($arr['doi_button']); |
|
|
|
|
unset($arr['honeypot_time']); |
|
|
|
|
unset($arr['captcha_sid']); |
|
|
|
|
unset($arr['captcha_token']); |
|
|
|
|
unset($arr['captcha_response']); |
|
|
|
|
array_walk($arr, 'upei_roblib_ill_check_arr_item'); |
|
|
|
|
return $arr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function upei_roblib_ill_check_arr_item(&$value, $key) { |
|
|
|
|
function upei_roblib_ill_check_arr_item(&$value, $key) |
|
|
|
|
{ |
|
|
|
|
if (is_array($value)) { |
|
|
|
|
array_walk($value, 'upei_roblib_ill_check_arr_item'); |
|
|
|
|
} |
|
|
|
|
//else { |
|
|
|
|
// $value = Xss::filter($value); |
|
|
|
|
//} |
|
|
|
|
//else { |
|
|
|
|
// $value = Xss::filter($value); |
|
|
|
|
//} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -196,7 +200,7 @@ function upei_roblib_ill_check_arr_item(&$value, $key) {
|
|
|
|
|
*/ |
|
|
|
|
function upei_roblib_format_biblio_info($form_state) |
|
|
|
|
{ |
|
|
|
|
$values = $form_state->getValues(); |
|
|
|
|
$values = $form_state->getValues(); |
|
|
|
|
$data = upei_roblib_ill_clean_array($values); |
|
|
|
|
$rows = []; |
|
|
|
|
foreach ($data as $key => $value) { |
|
|
|
|
|