mirror of
https://github.com/webmin/webmin.git
synced 2026-08-13 02:50:44 +01:00
Merge branch 'master' of github.com:webmin/webmin
This commit is contained in:
@@ -27,7 +27,7 @@ if ((lc(get_charset()) eq "utf-8" && ($encoding_name && lc($encoding_name) ne "u
|
||||
}
|
||||
eval {$data = Encode::encode('utf-8', Encode::decode($encoding_name, $data))};
|
||||
}
|
||||
my $file_binary = -B $file;
|
||||
my $file_binary = -s $file >= 128 && -B $file;
|
||||
&ui_print_header(undef, $text{'edit_file'}, "");
|
||||
$head = "<link rel='stylesheet' type='text/css' href='unauthenticated/css/style.css' />";
|
||||
|
||||
|
||||
@@ -2763,7 +2763,7 @@ if (defined(&theme_ui_read_file_contents_limit)) {
|
||||
return &theme_ui_read_file_contents_limit(@_);
|
||||
}
|
||||
my ($opts) = @_;
|
||||
my $binary = -B $opts->{'file'};
|
||||
my $binary = -s $opts->{'file'} >= 128 && -B $opts->{'file'};
|
||||
my $data = &read_file_contents_limit($opts->{'file'}, $opts->{'limit'}, $opts);
|
||||
my $error = $data->{'error'};
|
||||
if ($error) {
|
||||
|
||||
Reference in New Issue
Block a user