mirror of
https://github.com/webmin/webmin.git
synced 2026-06-22 04:00:28 +01:00
Use utf-8 always when reading JSON
This commit is contained in:
@@ -11034,7 +11034,7 @@ sub convert_from_json
|
||||
eval "use JSON::PP";
|
||||
if (!$@) {
|
||||
my ($json_text) = @_;
|
||||
return JSON::PP->new->latin1->decode($json_text);
|
||||
return JSON::PP->new->utf8->decode($json_text);
|
||||
}
|
||||
else {
|
||||
error("The JSON::PP Perl module is not available on your system : $@");
|
||||
|
||||
Reference in New Issue
Block a user