Skip to content

Commit 0f48ec0

Browse files
author
Marcos
committed
Do not allow {tab} on a domain name
1 parent 3aadf37 commit 0f48ec0

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
@@ -532,7 +532,7 @@ is_user_format_valid() {
532532
is_domain_format_valid() {
533533
object_name=${2-domain}
534534
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|_|/|\|\"|'|;|%|\`| ]"
535-
if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ "\.\." ]]; then
535+
if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ "\.\." ]] || [[ $1 =~ "$(printf '\t')" ]]; then
536536
check_result $E_INVALID "invalid $object_name format :: $1"
537537
fi
538538
}

0 commit comments

Comments
 (0)