diff --git a/system/controllers/bandwidth.php b/system/controllers/bandwidth.php index f7a71933..ca7fe0ef 100644 --- a/system/controllers/bandwidth.php +++ b/system/controllers/bandwidth.php @@ -93,8 +93,8 @@ switch ($action) { }; } $msg = ''; - if (Validator::Length($name, 255, 4) == false) { - $msg .= 'Name should be between 5 to 255 characters' . '
'; + if (Validator::Length($name, 256, 0) == false) { + $msg .= 'Name should be between 1 to 255 characters' . '
'; } 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' . '
'; + if (Validator::Length($name, 256, 0) == false) { + $msg .= 'Name should be between 1 to 255 characters' . '
'; } $id = _post('id');