Repository navigation
SubSignature v1.3.0 - add CID and base64 support
Add CID, base64 and Image Management Support
Scope: Admin Dashboard (admin_images.php)
Focus: Security & User Experience (UX)
Security Updates
- Upload Source Verification: Implementation of a strict check via
is_uploaded_file(). This prevents malicious attacks attempting to inject local server files through the temporary directory. - DDoS & Storage Protection: A new file size limit of 5MB per image has been implemented. This protects the server from overload (Denial-of-Service) and prevents storage space from being blocked by excessively large files.
- Note: Existing security mechanisms such as CSRF token validation, real MIME type checking (finfo), image verification (getimagesize), and strict filename sanitization remain active.
UI/UX Improvements
- In-Page Lightbox Preview: Opening image previews in a new browser tab is no longer required. Clicking on thumbnails or the "View" button now opens the image in an elegant, centered lightbox directly over the current page.
- Enhanced Lightbox Features: The new full-screen preview now displays the exact filename as a small label below the image to maintain context.
- Intuitive Interactions: Thumbnails in the table now feature a smooth hover effect (slight zoom and shadow) as well as a modified cursor (zoom-in) to immediately signal they are clickable.
Bugfixes & Maintenance
- Background Interaction: The logic for closing modal windows (Upload & Lightbox) by clicking on the darkened background has been optimized to function correctly without conflicts.
- State Management: Fixed an issue where the previous image would briefly "flash" when opening the lightbox by ensuring the image source (src) is cleared upon closing.