6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/11/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7305] broken php htmlspecialchars workaround needed
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.__ .__..___\ / >< [__)| |[__ >< / \| \|__\[___/ \
Comment
> php htmlspecialchars function is stupid: When presented with invalid > character data (e.g. raw latin1 'รค') and encoding is set to utf-8 > (also possibly other multibyte encodings), htmlspecialchars returns > empty string (http://bugs.php.net/bug.php?id=43896). > > > > horde should compensate for this, as not showing anything in an email > when it contains broken utf-8 data is just plain wrong. > > > > So, before using htmlspecialchars with charset utf-8, data should be > checked that it is (at least) valid utf-8. > > > > Not sure if this is horde or imp bug. In our local installation I > fixed the problem with attached patch to > lib/Horde/Text/Filter/text2html.php. We get a lot of messages with > broken utf-8, unfortunately. > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers