mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to prevent encoding detection if forbidden
This commit is contained in:
@@ -25,7 +25,9 @@ if ((lc(get_charset()) eq "utf-8" && ($encoding_name && lc($encoding_name) ne "u
|
||||
if ($forced) {
|
||||
$encoding_name = "$1";
|
||||
}
|
||||
eval {$data = Encode::encode('utf-8', Encode::decode($encoding_name, $data))};
|
||||
if ($userconfig{'config_portable_module_filemanager_editor_detect_encoding'} ne 'false') {
|
||||
eval {$data = Encode::encode('utf-8', Encode::decode($encoding_name, $data))};
|
||||
}
|
||||
}
|
||||
my $file_binary = -s $file >= 128 && -B $file;
|
||||
&ui_print_header(undef, $text{'edit_file'}, "");
|
||||
|
||||
Reference in New Issue
Block a user