My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 3: Silently accepts control characters in strings
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2008
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by jmillikin, Mar 23, 2008
JSON strings are not allowed to contain control characters (characters in
the range U+0000 through U+001F). However, simplejson will raise no
exception when these characters are included in a string.

>>> simplejson.loads (u'["A\u001FZ"]')
[u'A\x1fZ']

This means that users of simplejson must check the string manually to
ensure it has no invalid characters contained in it.
Comment 1 by b...@mochimedia.com, Mar 23, 2008
this one is legit, I'll fix it in 1.8.1
Status: Accepted
Comment 2 by bob.ippolito, Mar 24, 2008
resolved in r80
Status: Fixed
Sign in to add a comment

Hosted by Google Code