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

* lib/PandoraFMS/Tools.pm: Fixed safe_input function to encode
	more characters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-10-19 14:57:21 +00:00
parent 4b23aba7f8
commit 7253a6aa86
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-10-19 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed safe_input function to encode
more characters
2011-10-14 Koichiro Kikuchi <koichiro@rworks.jp>
* lib/PandoraFMS/Core.pm: Added _plugin_parameters_ macro to alerts.

View File

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