From 823d5bd6023718f1a7e966d173378357d807977d Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 29 Nov 2010 12:56:58 +0000 Subject: [PATCH] 2010-11-29 Ramon Novoa * lib/PandoraFMS/Tools.pm: Added ' to the list of characters to HTML encode. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3642 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/Tools.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 21dfee5546..ce2fad20cd 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2010-11-29 Ramon Novoa + + * lib/PandoraFMS/Tools.pm: Added ' to the list of characters to HTML + encode. + 2010-11-22 Raúl Mateos * pandora_server_upgrade, pandora_server_installer, README: Updated version diff --git a/pandora_server/lib/PandoraFMS/Tools.pm b/pandora_server/lib/PandoraFMS/Tools.pm index ef78036368..cf4ebc2405 100644 --- a/pandora_server/lib/PandoraFMS/Tools.pm +++ b/pandora_server/lib/PandoraFMS/Tools.pm @@ -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;