mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixed lower and higher case problems with tildes and written accents.
This commit is contained in:
parent
b533d3930d
commit
82658cb6fa
4
pandora_server/lib/PandoraFMS/Tools.pm
Normal file → Executable file
4
pandora_server/lib/PandoraFMS/Tools.pm
Normal file → Executable file
@ -178,7 +178,7 @@ sub safe_input($) {
|
||||
foreach(keys(%$trans))
|
||||
{
|
||||
my $pattern = chr($_);
|
||||
$value =~ s/$pattern/$trans->{$_}/gi;
|
||||
$value =~ s/$pattern/$trans->{$_}/g;
|
||||
}
|
||||
|
||||
return $value;
|
||||
@ -231,7 +231,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