From 705a80daf12377cd41dd5a5d53bacd5e16a39f4e Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 20 Oct 2011 09:30:58 +0000 Subject: [PATCH] 2011-10-20 Sergio Martin * lib/PandoraFMS/Tools.pm: Fixed mistake in the last commit adding parameter in wrong function (decode embed decode). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/Tools.pm | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 0bc4c4ed17..8c420ad9dd 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2011-10-20 Sergio Martin + + * lib/PandoraFMS/Tools.pm: Fixed mistake in the last commit + adding parameter in wrong function (decode embed decode). + 2011-10-20 Sergio Martin * lib/PandoraFMS/Tools.pm: Fixed safe_input and output to diff --git a/pandora_server/lib/PandoraFMS/Tools.pm b/pandora_server/lib/PandoraFMS/Tools.pm index 285b39bf2c..b8bfc3a18e 100644 --- a/pandora_server/lib/PandoraFMS/Tools.pm +++ b/pandora_server/lib/PandoraFMS/Tools.pm @@ -90,7 +90,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; @@ -137,7 +137,7 @@ sub safe_input($) { sub safe_output($) { my $value = shift; - $value = decode_entities ($value, "'<>&"); + $value = decode_entities ($value); #//Replace the character '\' for the equivalent html entitie $value =~ s/\/\\/gi;