allow backslash in motd for shrug
This commit is contained in:
@@ -6902,7 +6902,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
if (userPrefEl && window['motd_dismissed']) showPref = false;
|
if (userPrefEl && window['motd_dismissed']) showPref = false;
|
||||||
|
|
||||||
if (typeof marked !== 'undefined') {
|
if (typeof marked !== 'undefined') {
|
||||||
const rendered = marked.parseInline(escHTML(motd || ''));
|
const rendered = marked.parseInline(escHTML(motd || '').replace(/\\/g, '\\\\'));
|
||||||
displays.forEach((display, i) => {
|
displays.forEach((display, i) => {
|
||||||
if (display) {
|
if (display) {
|
||||||
if (dataStores[i]) dataStores[i].innerText = motd;
|
if (dataStores[i]) dataStores[i].innerText = motd;
|
||||||
|
|||||||
Reference in New Issue
Block a user