2 Commits
Author SHA1 Message Date
Adam Daley de116893b6 Harden URL, mail, and locale handling (#4359)
* Harden URL, mail, and locale handling

* Keep Sentry hardening mail test offline with unsupported DSN scheme

* Move Sentry regression tests into their module test files

* Drop Sentry issue IDs from regression test names

* Drop Sentry issue ID from Twig cache failure test name

* Drop Sentry issue IDs from test comments
2026-09-19 13:49:38 +01:00
Adam Daley c8439d0dc7 Fix Server_Manager::getPasswordLength() TypeError on non-int config (#4268)
Fix TypeError in Server_Manager::getPasswordLength()

_config['passwordLength'] is untyped, and stored server configs have
been observed carrying a numeric string rather than an int, which
violates this method's declared int return type. Cast defensively at
the boundary.

Confirmed live via Sentry (FOSSBILLING-MZA): ~7,800 occurrences since
June, still ongoing, always fatal to the whole cron run because the
error propagates out of order activation uncaught.
2026-09-02 16:46:32 +01:00