-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
The json like query strings ([test] or {test}) doomed to fail for KeywordsVocabulary, due to the use of _parseJSON:
plone.app.content/plone/app/content/browser/vocabulary.py
Lines 93 to 102 in 68721f4
| def _parseJSON(s): | |
| # XXX this should be changed to a try loads except return s | |
| if isinstance(s, str): | |
| s = s.strip() | |
| if (s.startswith("{") and s.endswith("}")) or ( | |
| s.startswith("[") and s.endswith("]") | |
| ): # detect if json | |
| return json_loads(s) | |
| return s |
Metadata
Metadata
Assignees
Labels
No labels