[Legacy] Fix wrong encoding in alert name

This commit is contained in:
Clemente Raposo 2023-03-20 15:08:24 +00:00
parent 44161bced8
commit 8ea9627610
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ class AlertNameMapper implements FieldMapperInterface
$nameValue = preg_replace('/^' . $searchString . '/', '', $nameValue);
}
$container[$name] = html_entity_decode($nameValue);
$container[$name] = html_entity_decode($nameValue, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
}
/**

View file

@ -76,7 +76,7 @@ class AddAlert
/** @var Alert $alert */
$alert = BeanFactory::newBean('Alerts');
$alert->name = $name;
$alert->name = html_entity_decode($name, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
$alert->description = $description;
$alert->url_redirect = $url_redirect;
$alert->target_module = $target_module;