[openstreetmap/openstreetmap-website] Set length limits on user provided content (PR #6047)

Tom Hughes notifications at github.com
Fri May 23 19:24:45 UTC 2025


This sets reasonable length limits on user descriptions, diary entries and diary comments.

Limits have been set after an analysis of existing data to try and avoid hitting any genuine and reasonable content.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6047

-- Commit Summary --

  * Limit user descriptions to 64Kb
  * Limit diary entries to 256Kb
  * Limit diary comments to 64Kb

-- File Changes --

    M .rubocop_todo.yml (2)
    M app/models/diary_comment.rb (2)
    M app/models/diary_entry.rb (2)
    M app/models/user.rb (1)
    M test/models/diary_comment_test.rb (9)
    M test/models/diary_entry_test.rb (3)
    M test/models/user_test.rb (12)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6047.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6047.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6047
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6047 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250523/5d4b5b97/attachment.htm>


More information about the rails-dev mailing list