allow backslash in motd for shrug

This commit is contained in:
2026-05-16 21:03:24 +02:00
parent 3cfb9dfc04
commit 58c1f939d6

View File

@@ -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;