#11447 add io_safe_output

This commit is contained in:
miguel angel rasteu 2023-06-05 13:01:16 +02:00
parent 564cc9652e
commit 823817e22f
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ foreach ($fields as $field) {
true
);
} else if ($field['is_link_enabled']) {
list($link_text, $link_url) = json_decode($custom_value, true);
list($link_text, $link_url) = json_decode(io_safe_output($custom_value), true);
if (json_last_error() !== JSON_ERROR_NONE) {
$link_text = '';