mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Check user later
This commit is contained in:
@@ -13,10 +13,6 @@ if ($getin{'direct'}) {
|
|||||||
&make_dir($direct_dir, 0711);
|
&make_dir($direct_dir, 0711);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($can_mode == 3 && &supports_users()) {
|
|
||||||
# User to upload as is set in the ACL
|
|
||||||
@uinfo = getpwnam($remote_user);
|
|
||||||
}
|
|
||||||
&ReadParseMime($upload_max, \&read_parse_mime_callback, [ $upid ], 1,
|
&ReadParseMime($upload_max, \&read_parse_mime_callback, [ $upid ], 1,
|
||||||
$direct_dir);
|
$direct_dir);
|
||||||
foreach my $k (keys %in) {
|
foreach my $k (keys %in) {
|
||||||
@@ -41,6 +37,10 @@ if ($can_mode != 3) {
|
|||||||
$can_mode == 0 || $in{'group_def'} || &in_group(\@uinfo, \@ginfo) ||
|
$can_mode == 0 || $in{'group_def'} || &in_group(\@uinfo, \@ginfo) ||
|
||||||
&error($text{'upload_egcannot'});
|
&error($text{'upload_egcannot'});
|
||||||
}
|
}
|
||||||
|
elsif (&supports_users()) {
|
||||||
|
# User to upload as is set in the ACL
|
||||||
|
@uinfo = getpwnam($remote_user);
|
||||||
|
}
|
||||||
for($i=0; defined($in{"upload$i"}); $i++) {
|
for($i=0; defined($in{"upload$i"}); $i++) {
|
||||||
for(my $j=0; $j<@{$in{"upload$i"}}; $j++) {
|
for(my $j=0; $j<@{$in{"upload$i"}}; $j++) {
|
||||||
$d = $in{"upload${i}"}->[$j];
|
$d = $in{"upload${i}"}->[$j];
|
||||||
|
|||||||
Reference in New Issue
Block a user