Skip to content

Commit 2f967e4

Browse files
Merge pull request hestiacp#825 from pcfreak30/hotfix/811
Automatically quote DNS records that have special characters BUG FIX
2 parents 40790f7 + 33d795c commit 2f967e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151

5252
dvalue=${dvalue//\"/}
5353

54-
if [[ "dvalue" =~ [^\;\s] ]]; then
54+
if [[ "$dvalue" =~ [\;[:space:]] ]]; then
5555
dvalue='"'"$dvalue"'"'
5656
fi
5757

0 commit comments

Comments
 (0)