fix (sanitize): input sanitisation

This commit is contained in:
MickaelK 2025-05-22 01:25:02 +10:00
parent caf6d3a151
commit 616e6ea24e

View file

@ -2,7 +2,7 @@ import { createElement, createRender } from "../lib/skeleton/index.js";
import { toHref, fromHref, navigate } from "../lib/skeleton/router.js"; import { toHref, fromHref, navigate } from "../lib/skeleton/router.js";
import { forwardURLParams } from "../lib/path.js"; import { forwardURLParams } from "../lib/path.js";
import rxjs, { effect, applyMutation } from "../lib/rx.js"; import rxjs, { effect, applyMutation } from "../lib/rx.js";
import { qs } from "../lib/dom.js"; import { qs, safe } from "../lib/dom.js";
import t from "../locales/index.js"; import t from "../locales/index.js";
import { AjaxError, ApplicationError } from "../lib/error.js"; import { AjaxError, ApplicationError } from "../lib/error.js";
@ -38,7 +38,7 @@ export default function(render) {
<div class="component_container"> <div class="component_container">
<div class="error-page"> <div class="error-page">
<h1>${t("Oops!")}</h1> <h1>${t("Oops!")}</h1>
<h2>${t(msg)}</h2> <h2>${t(safe(msg))}</h2>
<p> <p>
<button class="light" data-bind="details">${t("More details")}</button> <button class="light" data-bind="details">${t("More details")}</button>
<button class="primary" data-bind="refresh">${t("Reload")}</button> <button class="primary" data-bind="refresh">${t("Reload")}</button>