dashes as valid character for mysql databases

This commit is contained in:
Serghey Rodin 2012-12-11 22:56:53 +02:00
commit fe7c4cb95c
2 changed files with 23 additions and 21 deletions

View file

@ -590,7 +590,7 @@ validate_format_domain_alias() {
# Database
validate_format_database() {
exclude="[!|@|#|$|^|&|*|(|)|+|-|=|{|}|:|,|.|<|>|?|/|\|\"|'|;|%|\`| ]"
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|.|<|>|?|/|\|\"|'|;|%|\`| ]"
if [[ "$1" =~ $exclude ]] || [ 17 -le ${#1} ]; then
echo "Error: $2 $1 is not valid"
log_event "$E_INVALID" "$EVENT"