mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Disallow trailing / in home dir https://github.com/webmin/webmin/issues/1740
This commit is contained in:
@ -158,6 +158,7 @@ usave_ereal='$1' is not a valid real name
|
|||||||
usave_ehome='$1' is not a valid home directory
|
usave_ehome='$1' is not a valid home directory
|
||||||
usave_esgname='$1' is not a valid secondary group name
|
usave_esgname='$1' is not a valid secondary group name
|
||||||
usave_ehomepath=You are not allowed to create the home directory $1
|
usave_ehomepath=You are not allowed to create the home directory $1
|
||||||
|
usave_ehomeslash=Home directory $1 cannot end with a /
|
||||||
usave_eshell='$1' is not an allowable shell
|
usave_eshell='$1' is not an allowable shell
|
||||||
usave_egid='$1' is not a valid group
|
usave_egid='$1' is not a valid group
|
||||||
usave_egcreate=You are not allowed to create new groups for new users
|
usave_egcreate=You are not allowed to create new groups for new users
|
||||||
|
@ -225,6 +225,9 @@ elsif ($config{'home_base'} && $in{'home_base'}) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# Manual home directory chosen
|
# Manual home directory chosen
|
||||||
|
if ($in{'home'} =~ /\/$/ && $in{'home'} ne '/') {
|
||||||
|
&error(&text('usave_ehomeslash', $in{'home'}));
|
||||||
|
}
|
||||||
$user{'home'} = $in{'home'};
|
$user{'home'} = $in{'home'};
|
||||||
}
|
}
|
||||||
$real_home ||= $user{'home'};
|
$real_home ||= $user{'home'};
|
||||||
|
Reference in New Issue
Block a user