Skip to content

Commit c0c07a4

Browse files
committed
is_name_format_valid is only used for the name
Current rules allowes only names like: Very-long-company-name-with-more-then-twenty-eight-chars-will-fall Or Jaap - As the Name is only for display in email and pannel it doens't need to follow the stricter username rules used for Debian / Ubuntu
1 parent 54704ee commit c0c07a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ is_cron_format_valid() {
10691069

10701070
# Name validator
10711071
is_name_format_valid() {
1072-
if ! [[ "$1" =~ ^[[:alnum:]][-|\ |\.|_[:alnum:]]{0,28}[[:alnum:]]$ ]]; then
1072+
if ! [[ "$1" =~ ^[-|\ |\.|_[:alnum:]]{0,50}$ ]]; then
10731073
check_result "$E_INVALID" "invalid $2 format :: $1"
10741074
fi
10751075
}

0 commit comments

Comments
 (0)