We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 785d5dd commit 654838bCopy full SHA for 654838b
func/main.sh
@@ -583,7 +583,10 @@ is_date_format_valid() {
583
# Database user validator
584
is_dbuser_format_valid() {
585
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
586
- if [[ "$1" =~ $exclude ]] || [ 17 -le ${#1} ]; then
+ if [ 17 -le ${#1} ]; then
587
+ check_result $E_INVALID "mysql username can be up to 16 characters long"
588
+ fi
589
+ if [[ "$1" =~ $exclude ]]; then
590
check_result $E_INVALID "invalid $2 format :: $1"
591
fi
592
}
0 commit comments