Explorar el Código

Merge pull request #825 from pcfreak30/hotfix/811

Automatically quote DNS records that have special characters BUG FIX
Serghey Rodin hace 9 años
padre
commit
2f967e4dc8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/v-add-dns-record

+ 1 - 1
bin/v-add-dns-record

@@ -51,7 +51,7 @@ fi
 
 
 dvalue=${dvalue//\"/}
 dvalue=${dvalue//\"/}
 
 
-if [[ "dvalue" =~ [^\;\s] ]]; then
+if [[ "$dvalue" =~ [\;[:space:]] ]]; then
     dvalue='"'"$dvalue"'"'
     dvalue='"'"$dvalue"'"'
 fi
 fi