On Tue, Mar 26, 2013 at 8:48 PM, A.L.E.C alec@alec.pl wrote:
On 03/25/2013 11:10 PM, Michael Heydekamp wrote:
A reply to the message that I attached to my mail quoted below does still lead to an empty subject. Plus that the 8bit chars are deleted upon displaying the subject.
I reproduced the "empty subject on reply" issue. I'll investigate more.
I tracked it down to htmlspecialchars() in html::quote() used to quote the value attribute of the subject input field that returns an empty string if invalid characters are in the input.
The best (but very expensive) solution is to run every string through a charset validation function (whatever that might be) in order to verify that it doesn't contain invalid chars. Or maybe we can just do more sanity checks only for messages that do not specify charset information.
~Thomas