We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83735b3 commit 1bdca1dCopy full SHA for 1bdca1d
java/src/main/java/com/genexus/internet/HttpContext.java
@@ -22,6 +22,7 @@
22
import com.genexus.webpanels.GXWebObjectBase;
23
import com.genexus.webpanels.WebSession;
24
25
+import com.genexus.webpanels.WebUtils;
26
import json.org.json.IJsonFormattable;
27
import json.org.json.JSONArray;
28
import json.org.json.JSONException;
@@ -943,7 +944,7 @@ public void SendState()
943
944
AddStylesheetsToLoad();
945
if (isSpaRequest())
946
{
- writeTextNL("<script>gx.ajax.saveJsonResponse(" + getJSONResponse() + ");</script>");
947
+ writeTextNL("<script>gx.ajax.saveJsonResponse(" + WebUtils.htmlEncode(JSONObject.quote(getJSONResponse()), true) + ");</script>");
948
}
949
else
950
0 commit comments