Files
grecia/app/models
Javi Martín ad995f5a7c Check for valid segments before returning recipients
We were getting a warning by CodeQL regarding a possible code injection
in the `send(segment)` code.

In practice, this wasn't a big deal because the `self.recipients` method
is only called in the admin section, meaning only admin users could try
to take advantage of the code injection, and because this code is rarely
called with an invalid segment due to several conditions in the code
checking that the user segment is valid, with the only exception being
the `generate_csv` action in the `Admin::EmailsDownloadController`.

In any case, now we're checking that the segment is valid before calling
the `send` method. Since now we're making sure that the segment is valid
in the `recipients` method itself, we can remove this check from methods
calling it.
2025-04-01 16:13:17 +02:00
..
2024-11-13 15:55:20 +01:00
2021-08-16 16:31:04 +02:00
2021-12-30 15:50:02 +01:00
2019-03-27 15:22:14 +01:00
2023-11-22 14:44:24 +01:00
2021-04-13 13:52:18 +02:00
2019-10-23 14:39:31 +02:00
2024-04-02 16:31:10 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2024-07-22 18:35:35 +02:00
2020-12-02 12:13:02 +01:00
2021-08-16 16:31:04 +02:00
2021-08-16 16:31:04 +02:00
2019-10-25 19:29:12 +02:00
2025-03-26 16:42:04 +01:00
2024-11-13 15:55:20 +01:00
2021-01-12 14:50:37 +01:00