aa5b052e66
Handle sanitization as early as possible per best practices
...
Per WP security best practices, sanitization should be handled as early
as possible. So this commit move updates the calls to sanitize the
segment name and description to the part of the code where the user
input is first processed, instead of when the data is saved to the
database.
[MAILPOET-5232]
2023-04-17 14:33:51 -03:00
0bbd65ac61
Sanitize segment data when persisty via public API
...
[MAILPOET-4942]
2023-01-16 13:59:30 +01:00
8161b83ded
Add check on list type when deleting list
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
ad46d05c6b
Add check on list type
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
f231f3dc6d
Fix type error for list update
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
56c79dd66a
Add API method deleteList
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
25ba667cb1
Move segment id validation to private method
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
fbf4c853c1
Add new API method updateList
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
5fba25d823
Fix the exception message
...
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
18efc02921
Move list validation to a private method
...
We move the segment's name validation to a private method to avoid code repetition.
[MAILPOET-4752]
2022-11-02 14:05:39 +01:00
218de96024
Fix WordPress.WP.I18n.MissingTranslatorsComment errors
...
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
c8278dde2a
Use correct exception type when saving segment to DB fails
...
[MAILPOET-4294]
2022-08-04 13:31:53 +02:00
9c5dca0206
Refactor MailPoet\API\MP\v1\API::addList to doctrine
...
[MAILPOET-4294]
2022-08-04 13:31:53 +02:00
1a9845c916
Move getting segments to the new class
...
[MAILPOET-4292]
2022-07-14 11:29:09 +02:00