discourse/plugins/chat/spec/models
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
..
category_channel_spec.rb FIX: Do not error if autogenerated channel slug is blank (#19759) 2023-01-06 09:04:52 +10:00
category_spec.rb FIX: Delete associated channel upon category deletion 2022-11-22 10:04:29 +01:00
chat_channel_spec.rb DEV: Add messages_count to ChatChannel table (#19295) 2022-12-06 08:40:46 +10:00
chat_draft_spec.rb SECURITY: Limit chat drafts length and preloaded count (#19987) 2023-01-25 13:50:10 +02:00
chat_message_spec.rb DEV: Use UploadReference instead of ChatUpload in chat (#19947) 2023-01-24 13:28:21 +10:00
deleted_chat_user_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
direct_message_channel_spec.rb FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
direct_message_spec.rb
reviewable_chat_message_spec.rb FIX: Unsilence users on chat message flag disagree. (#19198) 2022-11-28 11:11:35 -03:00
user_spec.rb