Skip to content

'From:' header string running together on Apache server #92

@nabrown

Description

@nabrown

Hi All, my client whose site is using com_connect recently flagged an issue where the From: field had a bunch of stuff in it, not just a clean email address. For example:

From: one@emailaddress.com
    Reply-To: another@emailaddress.com
    X-Mailer: Textpattern (com_connect)
    X-Originating-IP: 71.192.96.233
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"

It seemed like the "From" header string was not being separated properly. When I changed these lines: $sep = IS_WIN ? "\r\n" : "\n"; to be $sep = IS_WIN ? "\r\n" : "\r\n"; (ie, a carriage return and newline character no matter what) the issue was resolved. Here is the server info:

Apache Version	2.4.59
MySQL Version	5.7.23-23
Architecture	x86_64
Operating System	linux
Shared IP Address	162.241.194.200
Path to Sendmail	/usr/sbin/sendmail
Path to Perl	/usr/bin/perl
Perl Version	5.16.3
Kernel Version	4.19.286-203.ELK.el7.x86_64

Now, those header lines look like:

From: one@emailaddress.com
X-Mailer: Textpattern (com_connect)
X-Originating-IP: 71.192.96.233
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"

So, for me I think this issue is fixed but posting here for others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions