discourse/plugins/chat/app/controllers
Natalie Tay 5eaf080239
SECURITY: Limit chat drafts length and preloaded count (#19987)
Only allow maximum of `50_000` characters for chat drafts. A hidden `max_chat_draft_length` setting can control this limit. A migration is also provided to delete any abusive draft in the database.

The number of drafts loaded on current user has also been limited and ordered by most recent update.

Note that spec files moved are not directly related to the fix.

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Co-authored-by: Régis Hanol <regis@hanol.fr>
2023-01-25 13:50:10 +02:00
..
admin DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
api FIX: generates automatic slug for trashed channels (#19908) 2023-01-23 15:05:47 +01:00
api_controller.rb DEV: Use guardian user for can_chat? (#19418) 2022-12-13 09:14:17 +10:00
chat_base_controller.rb DEV: Use guardian user for can_chat? (#19418) 2022-12-13 09:14:17 +10:00
chat_controller.rb SECURITY: Limit chat drafts length and preloaded count (#19987) 2023-01-25 13:50:10 +02:00
direct_messages_controller.rb DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
emojis_controller.rb DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
incoming_chat_webhooks_controller.rb DEV: Remove old TODO for chat webhooks (#19839) 2023-01-12 11:45:53 +10:00