mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
backup validation fix
This commit is contained in:
parent
e83c5c0043
commit
095a9f14ee
1 changed files with 2 additions and 3 deletions
|
@ -24,9 +24,8 @@ is_file_available() {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_file_valid() {
|
is_file_valid() {
|
||||||
exclude="[!$#&;()\]"
|
exclude="[!|#|$|^|&|(|)|{|}|<|>|?|\|\"|;|%|\`]"
|
||||||
vcontent=$(cat $vfile)
|
if [[ "$(cat $vfile)" =~ $exclude ]]; then
|
||||||
if [[ "$vcontent" =~ $exclude ]]; then
|
|
||||||
check_result $E_INVALID "invalid characters in the exlusion list"
|
check_result $E_INVALID "invalid characters in the exlusion list"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue