extra line breaks and anchors when editing/quoting mailing list posts [message #28188] |
Thu, 13 October 2005 10:39 |
tymp
Messages: 13 Registered: July 2005
Karma:
|
Junior Member |
|
|
Hallo,
Not sure if this is a bug report or a "patch".
I was having this problem with editing and quoting posts from a synchronized mailing list, with FUDforum version 2.6.13:
- messages from a mailing list, when edited or quoted, contained extra html break tags and anchor tags.
Adding the following at line 187 in post.inc.t (after the block/clause 'else if ($reply_to || $th_id)'):
$msg_body = eregi_replace( "<a[^>]*>([^<]*)</a>", "\\1", $msg_body);
$msg_body = eregi_replace( "<br[^>]*>", "", $msg_body);
seems to have resolved this...
So, i don't know how good or bad a solution this is, and not sure if it will cause other problems... but i think the problem is a bug.. and this is a start to a fix, at least (also, i didn't search the forum for previous fixes to this because... i'm in a rush).
Cheers,
-rob
|
|
|