mirror of
https://github.com/typemill/typemill.git
synced 2025-08-01 11:50:28 +02:00
Lowered validation for title to nohtml
This commit is contained in:
@@ -292,7 +292,8 @@ class Validation
|
||||
$v->rule('required', ['title', 'author', 'copyright', 'year', 'editor']);
|
||||
$v->rule('lengthBetween', 'title', 2, 20);
|
||||
$v->rule('lengthBetween', 'author', 2, 40);
|
||||
$v->rule('regex', 'title', '/^[\pL0-9_ \-]*$/u');
|
||||
$v->rule('noHTML', 'title');
|
||||
# $v->rule('regex', 'title', '/^[\pL0-9_ \-]*$/u');
|
||||
$v->rule('regex', 'author', '/^[\pL_ \-]*$/u');
|
||||
$v->rule('integer', 'year');
|
||||
$v->rule('length', 'year', 4);
|
||||
|
Reference in New Issue
Block a user