[SERVER-552] json - escape % bug Created: 18/Jan/10 Updated: 12/Jul/16 Resolved: 20/Jan/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.3.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
parsing { "x" : "\%" }doesn't work we should test other things like it when we do it. |
| Comments |
| Comment by Mathias Stearn [ 20/Jan/10 ] |
|
Technically only escape characters can be preceded by a \ in JSON, but since our parser is lax anyway I made it ignore the slash for any character that isn't an escape sequence in javascript. You still cant use \xXXX and \OOO sequences, but the \uXXXX sequence should cover those cases. |
| Comment by auto [ 20/Jan/10 ] |
|
Author: {'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: Support more escapes in JSON strings |