mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
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:
parent
fd39f45fea
commit
47188864a8
@ -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>
|
2011-10-14 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Added _plugin_parameters_ macro to alerts.
|
* lib/PandoraFMS/Core.pm: Added _plugin_parameters_ macro to alerts.
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user