filebrowser
This commit is contained in:
parent
03b5c2fbf4
commit
7787c948eb
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user