From 4323e2b87993615cd59e4cb624821ac7d1188599 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Sun, 23 Jun 2024 11:42:46 +0700 Subject: [PATCH] bandwidth name max char 255 --- system/controllers/bandwidth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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');