mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Escape JSON
This commit is contained in:
@@ -62,7 +62,8 @@ class EventOembed(generic.View):
|
||||
'version': '1.0',
|
||||
'type': 'rich',
|
||||
}
|
||||
json = simplejson.dumps(data)
|
||||
# need to do this: @xframe_options_exempt
|
||||
json = simplejson.JSONEncoderForHTML(data)
|
||||
return HttpResponse(json, content_type="application/json")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user