mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (sanitize): input sanitisation
This commit is contained in:
parent
caf6d3a151
commit
616e6ea24e
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue