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/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to