fix: resolve 3 security audit issues

#3: Stored XSS in stats dashboard - escape p[path] with html.escape()
#4: Caddy timeout race - increase read/write_timeout 30s -> 60s
#5: Missing CSP header - add Content-Security-Policy to Caddyfile
This commit is contained in:
akiba
2026-06-30 14:03:48 +00:00
parent 085cc7a140
commit 122c408fff
32 changed files with 9066 additions and 859 deletions

76
cache/331a4a4d15181598c366618812c89376 vendored Normal file
View File

@@ -0,0 +1,76 @@
/* MEDIA: speech */
.landmark {
opacity: 1;
height: auto;
width: auto;
font-size: 100%;
line-height: 0;
color: black;
}
a.tag {
speak: no-punctuation;
}
em {
voice-stress: moderate;
}
strong, .warnings, .caution {
voice-stress: strong;
}
cite {
voice-rate: 95%;
}
acronym {
speak: spell-out;
}
abbr {
content: attr(title);
}
code, kbd, tt, samp {
voice-rate: 95%;
}
.userstuff {
speak-numeral: continuous;
}
.meta {
voice-rate: 110%;
}
.blurb {
voice-rate: 105%;
}
.userstuff h1, .userstuff h2.title {
voice-rate: 90%;
pause: 5ms 10ms;
}
.chapter {
pause: 10ms 10ms;
}
.userstuff dt {
voice-balance: leftwards;
}
.userstuff dd {
voice-balance: rightwards;
}
.navigation {
voice-stress: moderate;
speak: no-punctuation;
}
.splash .browse li a:before {
speak: none;
}