From 906852b419d0e3a7b6b01d92a9969b89fe6c0188 Mon Sep 17 00:00:00 2001 From: ppound Date: Thu, 3 Feb 2022 13:16:45 -0400 Subject: [PATCH] remove depracated function --- includes/utilities.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/utilities.inc b/includes/utilities.inc index 1700177..f88a34c 100644 --- a/includes/utilities.inc +++ b/includes/utilities.inc @@ -12,6 +12,7 @@ */ use Drupal\Component\Utility\Xss; +use Drupal\Component\Utility\Html; function upei_roblib_ill_check_arr_item(&$value, $key) { if (is_array($value)) { @@ -95,7 +96,7 @@ function upei_roblib_ill_get_request_variable($variable) { if (($variable == 'genre' && !empty($_REQUEST[$variable])) && $_REQUEST[$variable] == 'bookitem') { return 'chapter'; } - return isset($_REQUEST[$variable]) ? check_plain($_REQUEST[$variable]) : ''; + return isset($_REQUEST[$variable]) ? Html::escape($_REQUEST[$variable]) : ''; }