- | ${IntlUtil.formatDate(log.DateTime)} |
- ${log.FromAddress} |
- ${log.ToAddress} |
- ${log.Inbound} |
- ${log.Outbound} |
+ ${escapeHtml(IntlUtil.formatDate(log.DateTime))} |
+ ${escapeHtml(log.FromAddress)} |
+ ${escapeHtml(log.ToAddress)} |
+ ${escapeHtml(log.Inbound)} |
+ ${escapeHtml(log.Outbound)} |
${text}
`;
diff --git a/web/html/login.html b/web/html/login.html
index 78bffd30..2e03a4c5 100644
--- a/web/html/login.html
+++ b/web/html/login.html
@@ -150,7 +150,11 @@
},
initHeadline() {
const animationDelay = 2000;
- const headlines = this.$el.querySelectorAll('.headline');
+ const rootEl = this.$el instanceof Element ? this.$el : document.getElementById('app');
+ if (!rootEl || typeof rootEl.querySelectorAll !== 'function') {
+ return;
+ }
+ const headlines = rootEl.querySelectorAll('.headline');
headlines.forEach((headline) => {
const first = headline.querySelector('.is-visible');
if (!first) return;
diff --git a/web/html/modals/client_modal.html b/web/html/modals/client_modal.html
index f66c01e6..65a481f6 100644
--- a/web/html/modals/client_modal.html
+++ b/web/html/modals/client_modal.html
@@ -7,7 +7,7 @@
:style="{ marginBottom: '10px', display: 'block', textAlign: 'center' }">Account
is (Expired|Traffic Ended) And Disabled
- {{template "form/client"}}
+ {{template "form/client" .}}