[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

@@ -17,11 +17,11 @@
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
"value": "[${messageChannel.name?js_string}](${message.jumpUrl})"
"value": "[${messageChannel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?js_string}"
"value": "${reason?json_string}"
}
]
}

View File

@@ -15,11 +15,11 @@
},
{
"name": "<@safe_include "ban_log_jump_link_field_title"/>",
"value": "[${messageChannel.name?js_string}](${message.jumpUrl})"
"value": "[${messageChannel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "ban_log_reason_field_title"/>",
"value": "${reason?js_string}"
"value": "${reason?json_string}"
}
]
}

View File

@@ -17,11 +17,11 @@
},
{
"name": "<@safe_include "kick_log_jump_link_field_title"/>",
"value": "[${channel.name?js_string}](${message.jumpUrl})"
"value": "[${channel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "kick_log_reason_field_title"/>",
"value": "${reason?js_string}"
"value": "${reason?json_string}"
}
]
}

View File

@@ -18,8 +18,8 @@
},
<#include "success_color">,
"description": "<#list userNotes as note><#assign note=note/>
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?js_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
<#assign noteText>${note.note.note?js_string}</#assign>
<#assign user><#if note.fullUser.member?has_content>${note.fullUser.member.asMention?json_string}<#else>${note.fullUser.aUserInAServer.userReference.id?c}</#if></#assign>
<#assign noteText>${note.note.note?json_string}</#assign>
<#assign noteId>${note.note.userNoteId.id}</#assign>
<#assign date>${formatDate(note.note.created, "yyyy-MM-dd HH:mm:ss")}</#assign>
<@safe_include "user_notes_note_entry"/><#else><@safe_include "user_notes_no_notes"/>

View File

@@ -17,11 +17,11 @@
},
{
"name": "<@safe_include "mute_log_mute_location_field_title"/>",
"value": "[${contextChannel.name?js_string}](${message.jumpUrl})"
"value": "[${contextChannel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
"value": "${reason?js_string}"
"value": "${reason?json_string}"
},
{
"name": "<@safe_include "mute_log_mute_duration_field_title"/>",

View File

@@ -40,7 +40,7 @@
},
{
"name": "<@safe_include "mute_log_mute_reason_field_title"/>",
"value": "${mute.reason?js_string}"
"value": "${mute.reason?json_string}"
}
],
"footer": {

View File

@@ -19,11 +19,11 @@
</#if>
{
"name": "<@safe_include "warn_log_warn_location_field_title"/>",
"value": "[${channel.name?js_string}](${message.jumpUrl})"
"value": "[${channel.name?json_string}](${message.jumpUrl})"
},
{
"name": "<@safe_include "warn_log_warn_reason_field_title"/>",
"value": "${reason?js_string}"
"value": "${reason?json_string}"
}
],
"footer": {