forked from leftypol/leftypol
increase character limit on board URI, title and subtitle
This commit is contained in:
parent
874b8cbf00
commit
033491f84f
6 changed files with 20 additions and 30 deletions
12
mod.php
12
mod.php
|
@ -1743,8 +1743,8 @@
|
|||
'<table>' .
|
||||
|
||||
'<tr><th>URI</th><td>' . $board['uri'] . '</td>' .
|
||||
'<tr><th>Title</th><td><input size="20" maxlength="20" type="text" name="title" value="' . $board['name'] . '" /></td></tr>' .
|
||||
'<tr><th>Subtitle</th><td><input size="20" maxlength="40" type="text" name="subtitle" value="' .
|
||||
'<tr><th>Title</th><td><input size="20" type="text" name="title" value="' . $board['name'] . '" /></td></tr>' .
|
||||
'<tr><th>Subtitle</th><td><input size="20" type="text" name="subtitle" value="' .
|
||||
(isset($board['title']) ? $board['title'] : '') . '" /></td></tr>' .
|
||||
|
||||
'</table>' .
|
||||
|
@ -2140,14 +2140,6 @@
|
|||
if(empty($b['title']))
|
||||
error(sprintf($config['error']['required'], 'title'));
|
||||
|
||||
// Check string lengths
|
||||
if(mb_strlen($b['uri']) > 15)
|
||||
error(sprintf($config['error']['toolong'], 'URI'));
|
||||
if(strlen($b['title']) > 40)
|
||||
error(sprintf($config['error']['toolong'], 'title'));
|
||||
if(strlen($b['subtitle']) > 120)
|
||||
error(sprintf($config['error']['toolong'], 'subtitle'));
|
||||
|
||||
if(!preg_match('/^\w+$/', $b['uri']))
|
||||
error(sprintf($config['error']['invalidfield'], 'URI'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue