Forum OpenACS Development: bug fixed in ad_html_to_text with numeric entities
Posted by Gustaf Neumann on 07/16/07 03:16 AM
There was a nasty bug in ad_html_to_text which lead to funny characters and possibly runtime errors. ad_html_to_text was broken, when it encountered (valid) entities like e.g. &#0038; the problem was that the old code interpreted the numeric value of the entity as an octal value because it starts with leading zeros. HTML 4.01 allows only decimal and hexadecimal numeric character references.
This bug is fixed in CVS head and in the oacs-5-3 branch.