95e5 Found bug in PHP mailheader patch - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old September 13th, 2010, 09:31
blodan blodan is offline
Junior Member
 
Join Date: May 2010
Posts: 28
Thanks: 10
Thanked 0 Times in 0 Posts
Default Found bug in PHP mailheader patch

Hi!

I found a bug in the mail header patch when using UTF-8.

If you have a url that contains custom chars, such as å ä ö, the mail header patch breaks that utf-8 encoding when it puts the path into the mailheader.

Anyone able to fix this?

Howto reproduce:
create a rewritten url with one of the chars å ä ö, or probably any other multibyte char. Make sure to set the header and encodings to utf-8 for that site.

Send a mail using mail();

You will then have a malformed header (see attached screenshot) and will be picked up by spamdetection softwares as "BAD HEADER".

Im not that good in coding C so i cant make a fix for this myself, hope someone here can.

(Using PHP 5.3.3 btw)
Attached Images
File Type: jpg mail-header-patch-bug.jpg (39.5 KB, 34 views)
Reply With Quote
  #2  
Old September 13th, 2010, 14:14
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,828
Thanks: 30
Thanked 1,887 Times in 1,332 Posts
Default

Inform the port maintainer or file a PR. Most people on the forums are users, not developers or ports committers.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
Reply

Tags
mailheader, patch, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading PHP 5.2 -> PHP 5.3 DutchDaemon Installation and Maintenance of FreeBSD Ports or Packages 9 April 12th, 2010 23:38
[Solved] The requested URL /postfixadmin/setup.php was not found on this server. Blodia Web & Network Services 3 February 4th, 2010 16:30
how to patch GnuCash? qsecofr Installation and Maintenance of FreeBSD Ports or Packages 3 May 4th, 2009 11:48
[PHP][solved][/PHP] General question sossego General 0 April 9th, 2009 23:36
(EE) Screen(s) found, but none have a usable configuration. - No screens found ctrabajos75 X.Org 3 March 29th, 2009 02:57


All times are GMT +1. The time now is 02:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0