From 585f909d3f4deed26c873134f1af1e9b6c043369 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 4 Oct 2016 21:05:07 +0100 Subject: [PATCH] Escape JSON --- RIGS/rigboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RIGS/rigboard.py b/RIGS/rigboard.py index e61571d1..3a4e3df6 100644 --- a/RIGS/rigboard.py +++ b/RIGS/rigboard.py @@ -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")