Compare commits

..

No commits in common. "486b322d3fdbbdb2b6bd5f3aaf467729a2f0df4a" and "65d51b27605fc6b95bee17f3ee531023ac0f0369" have entirely different histories.

3 changed files with 6 additions and 6 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 1. Click the **+ Add** button in the top-right corner
2. Select **New Folder** from the dropdown menu 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** 4. Click **Create Folder**
This is useful for organizing your ebooks by genre, author, or series. This is useful for organizing your ebooks by genre, author, or series.

View File

@ -546,8 +546,8 @@ void WifiSelectionActivity::renderNetworkList() const {
// Draw network name (truncate if too long) // Draw network name (truncate if too long)
std::string displayName = network.ssid; std::string displayName = network.ssid;
if (displayName.length() > 33) { if (displayName.length() > 16) {
displayName.replace(30, displayName.length() - 30, "..."); displayName.replace(13, displayName.length() - 13, "...");
} }
renderer.drawText(UI_10_FONT_ID, 20, networkY, displayName.c_str()); renderer.drawText(UI_10_FONT_ID, 20, networkY, displayName.c_str());

View File

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