mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Fixed lower and higher case problems with tildes and written accents.
This commit is contained in:
parent
a63a878f13
commit
15a1c1f27f
4
pandora_server/lib/PandoraFMS/Tools.pm
Normal file → Executable file
4
pandora_server/lib/PandoraFMS/Tools.pm
Normal file → Executable file
@ -183,7 +183,7 @@ sub safe_input($) {
|
|||||||
foreach(keys(%$trans))
|
foreach(keys(%$trans))
|
||||||
{
|
{
|
||||||
my $pattern = chr($_);
|
my $pattern = chr($_);
|
||||||
$value =~ s/$pattern/$trans->{$_}/gi;
|
$value =~ s/$pattern/$trans->{$_}/g;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
@ -236,7 +236,7 @@ sub safe_output($) {
|
|||||||
foreach(keys(%$trans))
|
foreach(keys(%$trans))
|
||||||
{
|
{
|
||||||
my $pattern = chr($_);
|
my $pattern = chr($_);
|
||||||
$value =~ s/$trans->{$_}/$pattern/gi;
|
$value =~ s/$trans->{$_}/$pattern/g;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user