Opened 15 years ago
Closed 15 years ago
#11573 closed defect (bug) (fixed)
sanitize_text_field() leaves extra whitespace when stripping octets
Reported by: | westi | Owned by: | westi |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description
If you sanitize out some octets from a string like:
We also %AB remove %ab octets
You get: We also__remove__octets
Instead of : We also_remove_octets
Found this while writing test cases for this based on the report in #11528
Attachments (1)
Change History (5)
#2
@
15 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
It's not often that there are octets in these strings. Perhaps we can save a little bit by running the last regex only when needed.
Note: See
TracTickets for help on using
tickets.
(In [12503]) Improve sanitize_text_field() some more so that we don't leave extra whitespace after stripping octets. Fixes #11573.