Compare commits

..

1 Commits

Author SHA1 Message Date
Marbelymarble
db2057c8c2
Merge 6c31f7581c into e5c0ddc9fa 2026-02-01 11:51:06 -05:00
2 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ Click **File Manager** to access file management features.
1. Click the **+ Add** button in the top-right corner
2. Select **New Folder** from the dropdown menu
3. Enter a folder name (must not contain characters \" * : < > ? / \\ | and must not be . or ..)
3. Enter a folder name (letters, numbers, underscores, and hyphens only)
4. Click **Create Folder**
This is useful for organizing your ebooks by genre, author, or series.

View File

@ -1146,10 +1146,10 @@ function retryAllFailedUploads() {
return;
}
// Validate folder name
const validName = /^(?!\.{1,2}$)[^"*:<>?\/\\|]+$/.test(folderName);
// Validate folder name (no special characters except underscore and hyphen)
const validName = /^[a-zA-Z0-9_\-]+$/.test(folderName);
if (!validName) {
alert('Folder name cannot contain \" * : < > ? / \\ | and must not be . or ..');
alert('Folder name can only contain letters, numbers, underscores, and hyphens.');
return;
}