bandwidth name max char 255
This commit is contained in:
parent
eb31f11fd6
commit
4323e2b879
@ -93,8 +93,8 @@ switch ($action) {
|
||||
};
|
||||
}
|
||||
$msg = '';
|
||||
if (Validator::Length($name, 255, 4) == false) {
|
||||
$msg .= 'Name should be between 5 to 255 characters' . '<br>';
|
||||
if (Validator::Length($name, 256, 0) == false) {
|
||||
$msg .= 'Name should be between 1 to 255 characters' . '<br>';
|
||||
}
|
||||
|
||||
if ($rate_down_unit == 'Kbps') {
|
||||
@ -152,8 +152,8 @@ switch ($action) {
|
||||
};
|
||||
}
|
||||
$msg = '';
|
||||
if (Validator::Length($name, 16, 4) == false) {
|
||||
$msg .= 'Name should be between 5 to 15 characters' . '<br>';
|
||||
if (Validator::Length($name, 256, 0) == false) {
|
||||
$msg .= 'Name should be between 1 to 255 characters' . '<br>';
|
||||
}
|
||||
|
||||
$id = _post('id');
|
||||
|
Loading…
x
Reference in New Issue
Block a user