Skip to content

Commit 7ae9a02

Browse files
authored
Fix: Error message containing html are encode twice (hestiacp#3473)
1 parent e1cab4a commit 7ae9a02

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/js/dist/events.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/js/src/events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ const VE = {
183183
// Create and insert the title
184184
if (title) {
185185
const titleElem = document.createElement('h2');
186-
titleElem.textContent = title;
186+
titleElem.innerHTML = title;
187187
titleElem.classList.add('modal-title');
188188
dialog.appendChild(titleElem);
189189
}
190190

191191
// Create and insert the message
192192
const messageElem = document.createElement('p');
193-
messageElem.textContent = message;
193+
messageElem.innerHTML = message;
194194
messageElem.classList.add('modal-message');
195195
dialog.appendChild(messageElem);
196196

0 commit comments

Comments
 (0)