mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Merge pull request #812 from pcfreak30/hotfix/811
Automatically quote DNS records that have special characters
This commit is contained in:
commit
ce1be73afa
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
dvalue=${dvalue//\"/}
|
||||
|
||||
if [[ "dvalue" =~ [^\;\s] ]]; then
|
||||
dvalue='"'"$dvalue"'"'
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue