diff --git a/includes/utilities.inc b/includes/utilities.inc index 8faf5c5..d69ce43 100644 --- a/includes/utilities.inc +++ b/includes/utilities.inc @@ -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) { @@ -213,4 +217,4 @@ function upei_roblib_format_biblio_info($form_state) ]; $html_output = \Drupal::service('renderer')->render($output); return $html_output; -} +} \ No newline at end of file