0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-cakeday/spec
Régis Hanol 6b4d70b0e0
DEV: Properly quote timezone values in cakeday SQL queries (#36804)
The anniversaries controller was interpolating user timezone values
directly into SQL via string interpolation. As a best practice, values
should be properly escaped at the point of SQL construction.

Moved timezone handling into cakedays_by() with a new apply_timezone
parameter and used ActiveRecord::Base.connection.quote() to properly
escape the value. This follows the same pattern used in
discourse-rewind.

Internal ref - t/102422
2025-12-19 14:54:52 +01:00
..
integration DEV: Properly quote timezone values in cakeday SQL queries (#36804) 2025-12-19 14:54:52 +01:00
jobs DEV: Clean up d-cakeday code after the move (#35213) 2025-10-06 19:42:22 +02:00
serializers DEV: Change cakeday and cakeday_birthday to off by default (#36274) 2025-11-27 15:24:48 +01:00
system DEV: Change cakeday and cakeday_birthday to off by default (#36274) 2025-11-27 15:24:48 +01:00