Analyse: Messdienst: Heatmap-Pfad wie gespeicherter Pfad, Tests für Kodierung und Stunde

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-01 18:50:26 +00:00
1 parent 96409c6306
commit a73e0be952
4 files changed
+35 -3

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ function looksLikeId(seg) {
return /\d{6,}/.test(d) || UUID.test(d) || d.includes('@');
}
function cleanPath(p) {
export function cleanPath(p) {
if (typeof p !== 'string') return null;
const s = p.split(/[?#]/)[0];
if (!s.startsWith('/') || s.length > 300 || /[\u0000-\u001f\u007f]/.test(s)) return null;