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:
jsatoh 2010-11-10 01:11:47 +00:00
parent fdf6e21673
commit 7806233681
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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/\\/&#92;/gi;