2010-11-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Decode HTML entities in macros. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3591 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
03b79ef9c5
commit
6d487db95f
|
@ -1,3 +1,7 @@
|
|||
2010-11-16 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Core.pm: Decode HTML entities in macros.
|
||||
|
||||
2010-11-11 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* FreeBSD/tentacle_server: Fixed variable name of PID.
|
||||
|
|
|
@ -1403,7 +1403,9 @@ sub subst_alert_macros ($$) {
|
|||
my ($string, $macros) = @_;
|
||||
|
||||
while ((my $macro, my $value) = each (%{$macros})) {
|
||||
$string =~ s/($macro)/$value/ig;
|
||||
# Macro data may contain HTML entities
|
||||
my $decoded_value = decode_entities ($value);
|
||||
$string =~ s/($macro)/$decoded_value/ig;
|
||||
}
|
||||
|
||||
return $string;
|
||||
|
|
Loading…
Reference in New Issue