2010-11-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Tools.pm: Added a parameter of unsafe_chars, '<>&', to encode_entities(). It is support for multibyte characters. If it is not defined, records with multibyte characters on database are destroyed by 'pandora_recode_db.pl'. :( git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3562 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
fdf6e21673
commit
7806233681
|
@ -1,3 +1,10 @@
|
|||
2010-11-10 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* lib/PandoraFMS/Tools.pm: Added a parameter of unsafe_chars, '<>&',
|
||||
to encode_entities(). It is support for multibyte characters.
|
||||
If it is not defined, records with multibyte characters on database
|
||||
are destroyed by 'pandora_recode_db.pl'. :(
|
||||
|
||||
2010-11-08 Sergio Martin <srgio.martin@artica.es>
|
||||
|
||||
* util/pandora_sync_db.pl: Added two special
|
||||
|
|
|
@ -85,7 +85,7 @@ sub pandora_trash_ascii {
|
|||
sub safe_input($) {
|
||||
my $value = shift;
|
||||
|
||||
$value = encode_entities ($value);
|
||||
$value = encode_entities ($value, "<>&");
|
||||
|
||||
#//Replace the character '\' for the equivalent html entitie
|
||||
$value =~ s/\\/\/gi;
|
||||
|
|
Loading…
Reference in New Issue