Repository navigation
v1.2.1 — Security Hardening, Broken Assets & Branding Cleanup
FoleyTimePro v1.2.1
Patch release focused on security hardening, broken asset references, and removing all remaining D-Best/TimeSmart branding.
Security
7 admin pages were publicly accessible without authentication. Any user who knew the URL could access timesheet data, trigger deletions, or download exports without logging in.
Files fixed:
admin/export_summary_excel.php— Excel export now returns HTTP 403 to unauthenticated requestsadmin/export_summary_pdf.php— sameadmin/process_timesheet_edits.php— JSON endpoint now returns{"success":false,"message":"Unauthorized"}admin/process_specific_punch_deletion.php— sameadmin/timesheet_view.php— redirects to loginadmin/timesheet_edit.php— redirects to loginadmin/timesheet_add.php— redirects to loginadmin/update_admin_table.php— allows CLI, blocks unauthenticated HTTP with 403
Broken Image Paths
FoleyTimePro.png and FoleyTimePro-favicon.png were referenced across 11 files but neither file has ever existed, causing broken favicons and logos on multiple pages.
FoleyTimePro.png→FoleyTimePro-logo.pngFoleyTimePro-favicon.png→FoleyTimePro-favicon.webpD-Best-favicon.webp(inoffline.html) →FoleyTimePro-favicon.webp
Pages fixed: admin/verify_2fa.php, user/verify_2fa.php, docs/privacy.php, docs/terms.php, docs/report.php, error.php, offline.html, manifest.php, api/v1/branding.php, scripts/generate_icons.php
display_errors Disabled
5 files had ini_set('display_errors', 1) enabled, which leaks PHP stack traces and internal paths to end users in production.
Files fixed: admin/enable_2fa.php, admin/time_off_requests.php, admin/test_timeoff.php, admin/export_summary_pdf.php, user/enable_2fa.php
Branding Cleanup
All remaining D-Best/TimeSmart references removed:
sw.js— header comment updated to FoleyTimeProcss/components.css— header comment updatedInstall/run_migration.php— output string updatedInstall/nginx/conf.d/timesmart.conf— renamed tofoleytimepro.conf, all internal upstream and log references updated