IMP3.1RC1 - Wron parameterscount in htmlspecialchars()
Martijn Dekkers
mdekkers@unforgettable.com
Tue, 12 Mar 2002 13:39:27 +0100
Hi,
Just installed the IMp 3.1 RC1. reading any mail will not display the mail,
only the top bit. On the top of the screen there is the error message:
Warning: Wrong parametercount for htmlspecialchars() in
[path_to_imp]/lib/MIME/Viewer/text.php line 41
there, I changed the line from:
Warning: Wrong parameter count for htmlspecialchars() in
/usr/local/httpd/htdocs/horde/imp/lib/MIME/Viewer/text.php on line 41
I changed the offending line from:
$text = htmlspecialchars($text, ENT_QUOTES, $charset);
to
$text = htmlspecialchars($text, $charset);
It now works. I have no idea why this error came about, and removing
ENT_QUOTES was simply a lucky guess. Any explanations?
Cheers,
Martijn