diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-09 21:13:44 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-09 21:13:44 +1000 |
| commit | 033491f84f9e58308954b049d3574e8791c6c3c2 (patch) | |
| tree | f5311fb408ba0191c65377697a539e1fa90d5a82 /mod.php | |
| parent | 874b8cbf002e9d8bf0ff39671e1501165016320a (diff) | |
increase character limit on board URI, title and subtitle
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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')); |
