[ postfixadmin-Bugs-2005839 ] Newlines not being escaped in send email
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2008-06-29 12:14:37
|
Bugs item #2005839, was opened at 2008-06-29 22:14 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2005839&group_id=191583 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: v 2.2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tabmow (tabmowtez) Assigned to: Nobody/Anonymous (nobody) Summary: Newlines not being escaped in send email Initial Comment: I have just ported version 2.2 to FreeBSD and am finding that when I send an e-mail from the web interface i get no newlines being escaped. A copy of the e-mail body is below: Hi,\r\n\r\nWelcome to your new account. I am using the default config.inc.php default message. If I manually edit the message with newlines i get them not being displayed correctly as well. I went through a list of patches last time for v2.1 and found the following patch: --- ./functions.inc.php.orig 2005-01-07 07:00:00.000000000 +0800 +++ ./functions.inc.php 2008-05-17 21:19:54.000000000 +0800 @@ -129,7 +129,12 @@ if (get_magic_quotes_gpc () == 0) { if ($CONF['database_type'] == "mysql") $escaped_string = mysql_real_escape_string ($string); - if ($CONF['database_type'] == "mysqli") $escaped_string = mysqli_real_escape_string ($string); + if ($CONF['database_type'] == "mysqli") + { + $link = db_connect (); + $escaped_string = mysqli_real_escape_string ($link, $string); + mysqli_close ($link); + } if ($CONF['database_type'] == "pgsql") $escaped_string = pg_escape_string ($string); } else Now from what I can tell this has already been rectified in version 2.2 so I see no need for this patch to be applied which I am not doing. The current database option I am using is mysqli. I have not tested it with pqsql yet. Any ideas will be helpful. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2005839&group_id=191583 |