Skip to content

Commit b8375c5

Browse files
authored
Merge pull request hestiacp#1577 from moucho/error_tab
Do not allow {tab} as a valid character for a domain
2 parents f1a6b37 + 0f48ec0 commit b8375c5

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)