mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
*Strip double quotes and only add back if value has spaces or semicolon
This commit is contained in:
parent
4adbef4517
commit
db9be6d244
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dvalue=${dvalue//\"/}
|
||||||
|
|
||||||
|
if [[ "dvalue" =~ [^\;\s] ]]; then
|
||||||
|
dvalue='"'"$dvalue"'"'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Verifications #
|
# Verifications #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue