Przeglądaj źródła

Change MySQL/MariaDB Database Name Limit to 30 characters.

Raphael Schneeberger 7 lat temu
rodzic
commit
f1f4023c15
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      func/main.sh

+ 2 - 2
func/main.sh

@@ -649,8 +649,8 @@ is_date_format_valid() {
 # Database user validator
 is_dbuser_format_valid() {
     exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|/|\|\"|'|;|%|\`| ]"
-    if [ 17 -le ${#1} ]; then
-        check_result $E_INVALID "mysql username can be up to 16 characters long"
+    if [ 31 -le ${#1} ]; then
+        check_result $E_INVALID "mysql username can be up to 30 characters long"
     fi
     if [[ "$1" =~ $exclude ]]; then
         check_result $E_INVALID "invalid $2 format :: $1"