bagder: curl-www/feedback add.cgi,1.2,1.3

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/feedback
In directory labb:/tmp/cvs-serv31119

Modified Files:
	add.cgi 
Log Message:
prevent short titles at add-level too, as I suspect some of these submissions
are automated


Index: add.cgi
===================================================================
RCS file: /cvsroot/curl/curl-www/feedback/add.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- add.cgi	1 Feb 2006 12:11:17 -0000	1.2
+++ add.cgi	13 Feb 2006 08:37:41 -0000	1.3
@@ -114,6 +114,14 @@
     exit;
 }
 
+if(length($title) < 4) {
+    &Top();
+    &Header("bad title");
+    print "<p> I insist on getting a sensible and proper title.";
+    &Footer;
+    exit;
+}
+
 
 $db = new pbase;
 $db->open("data/ideas");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.