mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Merge branch 'master' of github.com:webmin/webmin
This commit is contained in:
2
lang/en
2
lang/en
@@ -267,7 +267,7 @@ progress_size2=Downloading $1 ($2) ..
|
||||
progress_nosize=Downloading $1 ..
|
||||
progress_datan=Received $1 ($2 %)
|
||||
progress_data2n=Received $1
|
||||
progress_done=.. download complete.
|
||||
progress_done=.. download complete
|
||||
progress_incache=Found $1 in cache ..
|
||||
|
||||
readparse_cdheader=Missing Content-Disposition header
|
||||
|
||||
@@ -5255,8 +5255,11 @@ $config_file = "$config_directory/config";
|
||||
%gconfig = ( );
|
||||
&read_file_cached($config_file, \%gconfig);
|
||||
$gconfig{'webprefix'} = '' if (!exists($gconfig{'webprefix'}));
|
||||
if (!$gconfig{'webprefix'} && $gconfig{'webprefix_remote'}) {
|
||||
if (!$gconfig{'webprefix'} && $gconfig{'webprefix_remote'} &&
|
||||
defined($ENV{'HTTP_X_WEBMIN_WEBPREFIX'})) {
|
||||
$gconfig{'webprefix'} = $ENV{'HTTP_X_WEBMIN_WEBPREFIX'};
|
||||
# Filter out potentially dangerous characters
|
||||
$gconfig{'webprefix'} =~ s/[^a-zA-Z0-9\.\-_\/]//g;
|
||||
}
|
||||
$null_file = $gconfig{'os_type'} eq 'windows' ? "NUL" : "/dev/null";
|
||||
$path_separator = $gconfig{'os_type'} eq 'windows' ? ';' : ':';
|
||||
|
||||
Reference in New Issue
Block a user