Skip to content

Commit 28b1aed

Browse files
committed
Sec: Fix input validation in v-add-dns-on-web-alias
- restart: Validate bool_format, optional arg
1 parent 84f9d01 commit 28b1aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-dns-on-web-alias

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ source $HESTIA/conf/hestia.conf
2626
#----------------------------------------------------------#
2727

2828
check_args '3' "$#" 'USER ALIAS IP [RESTART]'
29-
is_format_valid 'user' 'alias' 'ip'
29+
is_format_valid 'user' 'alias' 'ip' 'restart'
3030
is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
3131
is_object_valid 'user' 'USER' "$user"
3232
is_object_unsuspended 'user' 'USER' "$user"

0 commit comments

Comments
 (0)