mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +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))
|
||||
{
|
||||
my $pattern = chr($_);
|
||||
$value =~ s/$pattern/$trans->{$_}/gi;
|
||||
$value =~ s/$pattern/$trans->{$_}/g;
|
||||
}
|
||||
|
||||
return $value;
|
||||
@ -236,7 +236,7 @@ sub safe_output($) {
|
||||
foreach(keys(%$trans))
|
||||
{
|
||||
my $pattern = chr($_);
|
||||
$value =~ s/$trans->{$_}/$pattern/gi;
|
||||
$value =~ s/$trans->{$_}/$pattern/g;
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user