summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.sql2
-rw-r--r--post.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/install.sql b/install.sql
index 000bcdbf..5f704277 100644
--- a/install.sql
+++ b/install.sql
@@ -28,7 +28,7 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`thread` int(11) DEFAULT NULL,
- `subject` varchar(25) NOT NULL,
+ `subject` varchar(40) NOT NULL,
`email` varchar(30) NOT NULL,
`name` varchar(25) NOT NULL,
`trip` varchar(15) DEFAULT NULL,
diff --git a/post.php b/post.php
index ab7ba05f..4fc5ce98 100644
--- a/post.php
+++ b/post.php
@@ -97,7 +97,7 @@
// Check string lengths
if(strlen($post['name']) > 25) error(sprintf(ERROR_TOOLONG, 'name'));
if(strlen($post['email']) > 30) error(sprintf(ERROR_TOOLONG, 'email'));
- if(strlen($post['subject']) > 25) error(sprintf(ERROR_TOOLONG, 'subject'));
+ if(strlen($post['subject']) > 40) error(sprintf(ERROR_TOOLONG, 'subject'));
if(strlen($post['body']) > MAX_BODY) error(ERROR_TOOLONGBODY);
if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error(ERROR_TOOSHORTBODY);
if(strlen($post['password']) > 20) error(sprintf(ERROR_TOOLONG, 'password'));