Przeglądaj źródła

Merge pull request #825 from pcfreak30/hotfix/811

Automatically quote DNS records that have special characters BUG FIX
Serghey Rodin 9 lat temu
rodzic
commit
2f967e4dc8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      bin/v-add-dns-record

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

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