filebrowser

This commit is contained in:
lovebird 2026-03-08 02:08:55 +01:00
parent 03b5c2fbf4
commit 7787c948eb
2 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -47,7 +47,7 @@ const DECODE_PATTERNS = [
const PARENT_DIR_RE = /[/\\]\.\.[/\\]/g;
/** Characters not allowed in VFS paths */
const NOT_ALLOWED_RE = /[:$!'"`@+|=]/g;
const NOT_ALLOWED_RE = /[:$!'"`+|=]/g;
// --- Error helper ---
@ -156,8 +156,8 @@ export function sanitizeSubpath(input: string): string {
// --- Write-operation name sanitization ---
/** Strip everything except alphanumeric, hyphens, underscores, spaces */
const UNSAFE_CHARS_RE = /[^a-zA-Z0-9_\- ]/g;
/** Strip everything except alphanumeric, hyphens, underscores, spaces, @ */
const UNSAFE_CHARS_RE = /[^a-zA-Z0-9_\- @]/g;
/** Max length for a single path segment (leaves room within Windows 260-char path limit) */
const MAX_SEGMENT_LENGTH = 200;