mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to always force text/plain for all kind for text #1907
This commit is contained in:
@@ -68,8 +68,10 @@ if ($ENV{'PATH_INFO'}) {
|
||||
# See if it is really text
|
||||
$out = &backquote_command("file ".
|
||||
quotemeta(&resolve_links($file)));
|
||||
$type = "text/plain" if ($out =~ /text|script/);
|
||||
}
|
||||
$type = "text/plain"
|
||||
if ($type =~ /text|java|script/ ||
|
||||
$out =~ /text|java|script/);
|
||||
}
|
||||
else {
|
||||
print "Content-Disposition: Attachment\n";
|
||||
|
||||
Reference in New Issue
Block a user