[AB-216] replacing js_string with json_string in order to escape characters, because js_string could lead to illegal escape sequences

This commit is contained in:
Sheldan
2021-03-28 17:12:08 +02:00
parent 26879b7952
commit 83ec7fc4cd
37 changed files with 76 additions and 76 deletions

View File

@@ -20,9 +20,9 @@
<#include "abstracto_color">,
<#assign id>${suggestionId}</#assign>
<#if state = "ACCEPTED" || state = "REJECTED">
"description": "~~${text?js_string}~~",
"description": "~~${text?json_string}~~",
<#else>
"description": "${text?js_string}",
"description": "${text?json_string}",
</#if>
<#if state = "ACCEPTED" || state = "REJECTED">
"fields": [
@@ -34,7 +34,7 @@
,
{
"name": "<@safe_include "suggest_reason_field_title"/>",
"value": "${reason?js_string}"
"value": "${reason?json_string}"
}
</#if>
],