Project

General

Profile

Actions

Bug #17518

closed

formmail: reply-to can contain invalid characters if formMailCharset different from site charset

Added by Wolfgang Zenker over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2007-08-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

formmail automatically converts character sets in mail headers if you define config['formMailCharset'] different than your site charset. In case your form didn't set the reply-to header explicitely, a copy of the from header is used. Unfortunately reply-to is set to a copy of the already converted from header and then again run through the conversion routine, which leads to invalid characters in the resulting string.

I noted the php and TYPO3 versions in use here, but they are largely irrelevant; the bug is probably in other versions as well.
(issue imported from #M6121)


Files

formmail.patch (1.15 KB) formmail.patch Administrator Admin, 2007-08-10 14:34
bug_6121_v2.diff (1.44 KB) bug_6121_v2.diff Administrator Admin, 2007-10-16 17:24
Actions #1

Updated by Michael Stucki about 17 years ago

I've changed the patch slightly:
- using $val again instead of $V elements
- change preg_match two lines down which causes to quote all names (don't know if it's needed, but the same is done for $name as well)

Actions #2

Updated by Michael Stucki about 17 years ago

Fixed in TYPO3 4.1.3 and later.

Actions

Also available in: Atom PDF