1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

Increased field limits

This commit is contained in:
Savetheinternet 2011-02-17 21:20:04 +11:00
parent 2b2d2ca6ed
commit fab3618afe
3 changed files with 5 additions and 5 deletions

View File

@ -213,7 +213,7 @@
// Check string lengths // Check string lengths
if(strlen($post['name']) > 50) error(sprintf($config['error']['toolong'], 'name')); if(strlen($post['name']) > 50) error(sprintf($config['error']['toolong'], 'name'));
if(strlen($post['email']) > 30) error(sprintf($config['error']['toolong'], 'email')); if(strlen($post['email']) > 40) error(sprintf($config['error']['toolong'], 'email'));
if(strlen($post['subject']) > 40) error(sprintf($config['error']['toolong'], 'subject')); if(strlen($post['subject']) > 40) error(sprintf($config['error']['toolong'], 'subject'));
if(!$mod && strlen($post['body']) > $config['max_body']) error($config['error']['toolongbody']); if(!$mod && strlen($post['body']) > $config['max_body']) error($config['error']['toolongbody']);
if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshortbody']); if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshortbody']);

View File

@ -29,7 +29,7 @@
Email Email
</th> </th>
<td> <td>
<input type="text" name="email" size="25" maxlength="30" autocomplete="off" /> <input type="text" name="email" size="25" maxlength="40" autocomplete="off" />
</td> </td>
</tr> </tr>
<tr> <tr>
@ -37,7 +37,7 @@
Subject Subject
</th> </th>
<td> <td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="25" autocomplete="off" /> <input style="float:left;" type="text" name="subject" size="25" maxlength="40" autocomplete="off" />
<input accesskey="s" style="float:right;" type="submit" name="post" value="{button=New Topic}" /> <input accesskey="s" style="float:right;" type="submit" name="post" value="{button=New Topic}" />
</td> </td>
</tr> </tr>

View File

@ -30,7 +30,7 @@
Email Email
</th> </th>
<td> <td>
<input type="text" name="email" size="25" maxlength="30" autocomplete="off" /> <input type="text" name="email" size="25" maxlength="40" autocomplete="off" />
</td> </td>
</tr> </tr>
<tr> <tr>
@ -38,7 +38,7 @@
Subject Subject
</th> </th>
<td> <td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="25" autocomplete="off" /> <input style="float:left;" type="text" name="subject" size="25" maxlength="40" autocomplete="off" />
<input accesskey="s" style="float:right;" type="submit" name="post" value="{button=New Topic}" /> <input accesskey="s" style="float:right;" type="submit" name="post" value="{button=New Topic}" />
</td> </td>
</tr> </tr>