mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
dot in db name is allowed now
This commit is contained in:
parent
449a9fbf7b
commit
b972002404
1 changed files with 2 additions and 2 deletions
|
@ -636,7 +636,7 @@ validate_format_domain_alias() {
|
|||
|
||||
# Database
|
||||
validate_format_database() {
|
||||
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|.|<|>|?|/|\|\"|'|;|%|\`| ]"
|
||||
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
|
||||
if [[ "$1" =~ $exclude ]] || [ 65 -le ${#1} ]; then
|
||||
echo "Error: $2 $1 is not valid"
|
||||
log_event "$E_INVALID" "$EVENT"
|
||||
|
@ -646,7 +646,7 @@ validate_format_database() {
|
|||
|
||||
# Database user
|
||||
validate_format_dbuser() {
|
||||
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|.|<|>|?|/|\|\"|'|;|%|\`| ]"
|
||||
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
|
||||
if [[ "$1" =~ $exclude ]] || [ 17 -le ${#1} ]; then
|
||||
echo "Error: $2 $1 is not valid"
|
||||
log_event "$E_INVALID" "$EVENT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue