Fix backup restore

This commit is contained in:
Alexandr Loskutov 2018-01-18 14:32:25 +02:00
commit bea7ccd25e
2 changed files with 5 additions and 5 deletions

View file

@ -634,8 +634,8 @@ is_date_format_valid() {
is_dbuser_format_valid() {
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
if [ 17 -le ${#1} ]; then
check_result $E_INVALID "mysql username can be up to 16 characters long"
fi
check_result $E_INVALID "mysql username can be up to 16 characters long"
fi
if [[ "$1" =~ $exclude ]]; then
check_result $E_INVALID "invalid $2 format :: $1"
fi
@ -770,7 +770,7 @@ is_name_format_valid() {
# Object validator
is_object_format_valid() {
if ! [[ "$1" =~ ^[[:alnum:]][-|\.|_[:alnum:]]{0,28}[[:alnum:]]$ ]]; then
if ! [[ "$1" =~ ^[[:alnum:]][-|\.|_[:alnum:]]{0,64}[[:alnum:]]$ ]]; then
check_result $E_INVALID "invalid $2 format :: $1"
fi
}