mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
[Legacy] Fix wrong encoding in alert name
This commit is contained in:
parent
44161bced8
commit
8ea9627610
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue