Patches: Browse | Submit New | Admin

[#5446] Strip leading zeros from character entities

Date:
2006-08-17 10:46
Priority:
3
Submitted By:
P. Mark Anderson (pmark)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Strip leading zeros from character entities

Detailed description
The SGML parser fails to parse this string:
 href="http://redir.flock.com/redir?component=external&partner=techcrunch&distcode=flock&#038
;action=download&extra=banner&ref=techcrunch-001&content=techcrunch-001%20"

...because it can't handle the & character properly.  Integer('038') will fail.  The solution is to strip leading
zeros.

Cheers.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
sgml__strip_leading_zeros_from_integer_entities.path Patch that strips any leading zeros in entities passed to handle_charref(name) so that the character can be a valid Integer Download
sgml__strip_leading_zeros_from_integer_entities.patch (PROPER PATCH FILENAME) Patch that strips any leading zeros in entities passed to handle_charref(name) so that the character can be a valid Integer Download

Changes:

Field Old Value Date By
File Added754: sgml__strip_leading_zeros_from_integer_entities.patch2006-08-17 10:48pmark
File Added753: sgml__strip_leading_zeros_from_integer_entities.path2006-08-17 10:47pmark