From 095a9f14eebf55de6986376756f33c050f5b8fe4 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 25 Jun 2016 11:09:44 +0300 Subject: [PATCH] backup validation fix --- bin/v-update-user-backup-exclusions | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/v-update-user-backup-exclusions b/bin/v-update-user-backup-exclusions index c4b913267..eefad8c31 100755 --- a/bin/v-update-user-backup-exclusions +++ b/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 }