You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
Fix maxlength for User and Host on Replication add user form
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user