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:
parent
b0a5b41ff7
commit
856af9d818
|
@ -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
|
||||||
|
|
|
@ -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/\\/\/gi;
|
$value =~ s/\\/\/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/\/\\/gi;
|
$value =~ s/\/\\/gi;
|
||||||
|
|
Loading…
Reference in New Issue