Fix maxlength for User and Host on Replication add user form
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
a64400f91e
commit
999e4a7b0d
@ -324,14 +324,14 @@ class ReplicationGui
|
||||
if ($val['Field'] == 'User') {
|
||||
strtok($val['Type'], '()');
|
||||
$v = strtok('()');
|
||||
if (is_int($v)) {
|
||||
$username_length = $v;
|
||||
if (Util::isInteger($v)) {
|
||||
$username_length = (int) $v;
|
||||
}
|
||||
} elseif ($val['Field'] == 'Host') {
|
||||
strtok($val['Type'], '()');
|
||||
$v = strtok('()');
|
||||
if (is_int($v)) {
|
||||
$hostname_length = $v;
|
||||
if (Util::isInteger($v)) {
|
||||
$hostname_length = (int) $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user