mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
5e3dd6a1d1
Documents created with zero-width Unicode characters (e.g. U+200B) in their titles become unclickable on the index page, making them hard to manage or delete. Introduce RemoveInvisibleCharacters normalizer, replacing the former RemoveAsciiControlCharacters. It strips both ASCII control characters and Unicode zero-width characters, with each category defined as a named constant for clarity. Apply it to Document#title and update existing callers (Project#identifier, CustomField#name). Add a shared RSpec example "strips invisible characters" to verify normalization consistently across all three models.