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