bandwidth name max char 255

This commit is contained in:
Ibnu Maksum 2024-06-23 11:42:46 +07:00
parent eb31f11fd6
commit 4323e2b879
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -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');