Opened 18 years ago
Closed 16 years ago
#7041 closed defect (bug) (fixed)
Strip \r on js escape
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | JavaScript | Keywords: | js i18n needs-patch |
| Focuses: | Cc: |
Description
Now in the js_escape function, \r is stripped only if it is before \n.
I have seen many PO editors to insert \r in the end of translations, which breaks javascript.
I propose that we filter \r out of javascript strings. A patch is attached and tested.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
patch is b0rke.