Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Restricted user and post content input length to match db length

givanz9dbd5c0b7f2c
diff --git a/admin/validate/admin.php b/admin/validate/admin.php
index 494be6d..092dd53 100755
--- a/admin/validate/admin.php
+++ b/admin/validate/admin.php
@@ -25,16 +25,20 @@ return [
'notEmpty' => ''/*,
'message' => '%s must not be empty'*/,
- 'maxLength' => 100 /*,
+ 'maxLength' => 60 /*,
'message' => __('%s must not be greater than %d')*/,
],
'display_name' => [
'notEmpty' => ''/*,
'message' => '%s must not be empty'*/,
- 'maxLength' => 255 /*,
+ 'maxLength' => 250 /*,
'message' => __('%s must not be greater than %d')*/,
],
+ 'first_name' => [
+ 'notEmpty' => '',
+ 'maxLength' => 32,
+ ],
'email' => [
'email' => '',
],
diff --git a/admin/validate/post_content.php b/admin/validate/post_content.php
index c640afd..130a386 100755
--- a/admin/validate/post_content.php
+++ b/admin/validate/post_content.php
@@ -23,7 +23,7 @@
return [
'name' => [
'notEmpty' => '',
- 'maxLength' => 100, 'name' => 'Name',
+ 'maxLength' => 250, 'name' => 'Name',
],
'content' => [
diff --git a/admin/validate/product_content.php b/admin/validate/product_content.php
index 6c59324..313d69c 100755
--- a/admin/validate/product_content.php
+++ b/admin/validate/product_content.php
@@ -23,7 +23,7 @@
return [
'name' => [
'notEmpty' => '',
- 'maxLength' => 100, 'name' => 'Name',
+ 'maxLength' => 250, 'name' => 'Name',
],
'content' => [
diff --git a/admin/validate/user.php b/admin/validate/user.php
index 494be6d..c94e98c 100755
--- a/admin/validate/user.php
+++ b/admin/validate/user.php
@@ -25,18 +25,27 @@ return [
'notEmpty' => ''/*,
'message' => '%s must not be empty'*/,
- 'maxLength' => 100 /*,
+ 'maxLength' => 60 /*,
'message' => __('%s must not be greater than %d')*/,
],
'display_name' => [
'notEmpty' => ''/*,
'message' => '%s must not be empty'*/,
- 'maxLength' => 255 /*,
+ 'maxLength' => 250 /*,
'message' => __('%s must not be greater than %d')*/,
],
+ 'first_name' => [
+ 'notEmpty' => '',
+ 'maxLength' => 32,
+ ],
+ 'last_name' => [
+ 'notEmpty' => '',
+ 'maxLength' => 32,
+ ],
'email' => [
- 'email' => '',
+ 'email' => '',
+ 'maxLength' => 100,
],
/*
'captcha' => [