#11025 Fixed the bug that cuts the text of the Search field

This commit is contained in:
Jorge Rincon 2023-06-28 17:21:06 +02:00
parent 8e42ee6c82
commit 9a20ea1231
2 changed files with 2 additions and 1 deletions

View File

@ -287,6 +287,7 @@ $url = ui_get_url_refresh(
'offset' => false, 'offset' => false,
'search_string' => $search_string, 'search_string' => $search_string,
'search_type' => $search_type, 'search_type' => $search_type,
'alert_flag' => true,
], ],
true, true,
false false

View File

@ -4834,7 +4834,7 @@ function ui_get_url_refresh($params=false, $relative=true, $add_post=true)
$url = substr_replace($url, '', $pos, 5); $url = substr_replace($url, '', $pos, 5);
} }
$url = htmlspecialchars($url); $url = (isset($params['alert_flag']) && $params['alert_flag']) ? $url : htmlspecialchars($url);
if (! $relative) { if (! $relative) {
return ui_get_full_url($url, false, false, false); return ui_get_full_url($url, false, false, false);