2011-10-20 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2011-10-20 09:30:58 +00:00
parent b0a5b41ff7
commit 856af9d818
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-10-20 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed mistake in the last commit
adding parameter in wrong function (decode embed decode).
2011-10-20 Sergio Martin <sergio.martin@artica.es> 2011-10-20 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed safe_input and output to * lib/PandoraFMS/Tools.pm: Fixed safe_input and output to

View File

@ -90,7 +90,7 @@ sub pandora_trash_ascii {
sub safe_input($) { sub safe_input($) {
my $value = shift; my $value = shift;
$value = encode_entities ($value); $value = encode_entities ($value, "'<>&");
#//Replace the character '\' for the equivalent html entitie #//Replace the character '\' for the equivalent html entitie
$value =~ s/\\/&#92;/gi; $value =~ s/\\/&#92;/gi;
@ -137,7 +137,7 @@ sub safe_input($) {
sub safe_output($) { sub safe_output($) {
my $value = shift; my $value = shift;
$value = decode_entities ($value, "'<>&"); $value = decode_entities ($value);
#//Replace the character '\' for the equivalent html entitie #//Replace the character '\' for the equivalent html entitie
$value =~ s/&#92;/\\/gi; $value =~ s/&#92;/\\/gi;