FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » maillist debug (how to debug the maillist import)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: maillist debug [message #163047 is a reply to message #163014] Mon, 20 September 2010 21:34 Go to previous messageGo to previous message
lbrigman124 is currently offline  lbrigman124   United States
Messages: 26
Registered: March 2010
Karma:
Junior Member
Here is a patch for limiting the subject to 100 chars (the size
of the field). It really should be done against a variable
that depends on the size of the table/field in question but I
am not good enough with php/sql to get that done.

--- maillist.php 2010-09-16 09:17:18.000000000 -0700
+++ maillist.php.new 2010-09-20 14:24:24.000000000 -0700
@@ -526,7 +527,7 @@
}

fud_wordwrap($msg_post->body);
- $msg_post->subject = htmlspecialchars(apply_custom_replace($emsg->subject));
+ $msg_post->subject = htmlspecialchars(substr(apply_custom_replace($emsg->subject),0,100)); //limit subject line to MAX field lenght of 100)
if (!strlen($msg_post->subject)) {
mlist_error_log('Blank Subject', $emsg->raw_msg);
$msg_post->subject = '(no subject)';
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Require approval of all posts
Next Topic: setting up user groups and permissions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 20:31:03 GMT 2024

Total time taken to generate the page: 0.07066 seconds