0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00

Fix Mac Snow Leopard APC bug.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang 2010-08-26 21:40:58 -07:00
parent 57ced3f361
commit e2c15f1c98
2 changed files with 6 additions and 1 deletions

2
NEWS
View File

@ -16,6 +16,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
did nothing. Thanks David Rothstein for reporting. did nothing. Thanks David Rothstein for reporting.
- Fix improper handling of Internet Explorer conditional comments - Fix improper handling of Internet Explorer conditional comments
by parser. Thanks zmonteca for reporting. by parser. Thanks zmonteca for reporting.
- Fix missing attributes bug when running on Mac Snow Leopard and APC.
Thanks sidepodcast for the fix.
4.1.1, released 2010-05-31 4.1.1, released 2010-05-31
- Fix undefined index warnings in maintenance scripts. - Fix undefined index warnings in maintenance scripts.

View File

@ -215,7 +215,10 @@ class HTMLPurifier_Generator
* permissible for non-attribute output. * permissible for non-attribute output.
* @return String escaped data. * @return String escaped data.
*/ */
public function escape($string, $quote = ENT_COMPAT) { public function escape($string, $quote = null) {
// Workaround for APC bug on Mac Leopard reported by sidepodcast
// http://htmlpurifier.org/phorum/read.php?3,4823,4846
if ($quote === null) $quote = ENT_COMPAT;
return htmlspecialchars($string, $quote, 'UTF-8'); return htmlspecialchars($string, $quote, 'UTF-8');
} }