hackatime/app
Mahad Kalam a9f3b613cd
Fix crash when project name contains newline characters (#1096)
Project names with newlines (e.g. from misbehaving editor plugins) caused
ActionController::UrlGenerationError when loading /my/projects because Rails
route constraints reject newlines in URL parameters.

- Strip control characters from project names at heartbeat ingestion time
- Detect newlines in broken_project_name? to mark such projects as broken
- Skip URL generation for broken project names to prevent the crash

https://claude.ai/code/session_016CtSDw18BePckUBQ2teeuQ

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-20 20:21:12 +00:00
..
assets Mailer previews + partialify the weekly summary (#1076) 2026-03-15 20:35:48 +00:00
controllers Fix crash when project name contains newline characters (#1096) 2026-03-20 20:21:12 +00:00
helpers Fix email from name/dates, login flash, wakatime_setup redirect, Sunday 6:30pm GMT (#1067) 2026-03-13 10:53:57 +00:00
javascript Add 'today' to dashboard logged time sentence (#1083) 2026-03-17 18:17:19 +00:00
jobs Add Sentry monitoring for previously unreported errors (#1066) 2026-03-13 11:06:12 +00:00
lib Make Linguist extensible via languages_custom.yml (#1054) 2026-03-11 16:05:03 +00:00
mailers Fix email from name/dates, login flash, wakatime_setup redirect, Sunday 6:30pm GMT (#1067) 2026-03-13 10:53:57 +00:00
models Revert "Fix grouped duration_seconds overcounting by using global LAG instead…" (#1077) 2026-03-15 21:51:17 +00:00
services Add Sentry monitoring for previously unreported errors (#1066) 2026-03-13 11:06:12 +00:00
views Mailer previews + partialify the weekly summary (#1076) 2026-03-15 20:35:48 +00:00