WowUltra Forums Home 
Search     Members Calendar Help Home
Search by username
Not logged in - Login | Register 
WowUltra Forums > News and Announcements > Bug Reports > Not a bug but an issue-

 Moderated by: Jim
New Topic Reply Printer Friendly
Not a bug but an issue- - Bug Reports - News and Announcements - WowUltra Forums
AuthorPost
 Posted: Fri Nov 16th, 2007 02:02 am
PMQuoteReply  
1st Post
Jim
Administrator


Joined: Wed Apr 11th, 2007
Location:  
Posts: 1854
Status: 
Offline
Mana: 
Most ultra installs are on linux servers. If anyone has noticed when you send e-mail from an ultra board there is an extra line break after every normal line break.

This is because the format used to produce breaks is different in linux and windows servers, and to satisfy both types servers the code has to be there as it is.

If you are on a linux server and want the extra line break gone it is possible....

First of all if you put in a request in private support I will do it for you.

Otherwise open lib.php and search for this line:
mail($to, $subject, str_replace("\n", "\r\n", $contents), $headers);


take away the \r :

mail($to, $subject, str_replace("\n", "\n", $contents), $headers);


It will put a single break in. This has been tested but I have to leave the install files as they are or it wouldn't break on a windows server.

Windows break= \r\n

Linux break= \n

Mac break= \r

Yes there are mac servers.

Back To Top PMQuoteReply

Current time is 08:23 am  
WowUltra Forums > News and Announcements > Bug Reports > Not a bug but an issue-



WowUltra 1.15 Copyright © 2007-2008 by Jim Hale
Page processed in 0.1431 seconds (19% database + 81% PHP). 20 queries executed.