forked from leftypol/leftypol
increased board uri/title/subtitle character limits
This commit is contained in:
parent
3e9e51b1e7
commit
3b17f32047
4 changed files with 15 additions and 10 deletions
6
mod.php
6
mod.php
|
@ -2024,11 +2024,11 @@
|
|||
error(sprintf($config['error']['required'], 'title'));
|
||||
|
||||
// Check string lengths
|
||||
if(mb_strlen($b['uri']) > 8)
|
||||
if(mb_strlen($b['uri']) > 15)
|
||||
error(sprintf($config['error']['toolong'], 'URI'));
|
||||
if(mb_strlen($b['title']) > 20)
|
||||
if(strlen($b['title']) > 40)
|
||||
error(sprintf($config['error']['toolong'], 'title'));
|
||||
if(mb_strlen($b['subtitle']) > 40)
|
||||
if(strlen($b['subtitle']) > 120)
|
||||
error(sprintf($config['error']['toolong'], 'subtitle'));
|
||||
|
||||
if(!preg_match('/^\w+$/', $b['uri']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue