Przeglądaj źródła

backup validation fix

Serghey Rodin 9 lat temu
rodzic
commit
095a9f14ee
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      bin/v-update-user-backup-exclusions

+ 2 - 3
bin/v-update-user-backup-exclusions

@@ -24,9 +24,8 @@ is_file_available() {
 }
 
 is_file_valid() {
-    exclude="[!$#&;()\]"
-    vcontent=$(cat $vfile)
-    if [[ "$vcontent" =~ $exclude ]]; then
+    exclude="[!|#|$|^|&|(|)|{|}|<|>|?|\|\"|;|%|\`]"
+    if [[ "$(cat $vfile)" =~ $exclude ]]; then
         check_result $E_INVALID "invalid characters in the exlusion list"
     fi
 }