20230209083829_html_sanitizer_processing_timeout.rb 606 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class HtmlSanitizerProcessingTimeout < ActiveRecord::Migration[6.1]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'HTML Sanitizer Processing Timeout',
  8. name: 'html_sanitizer_processing_timeout',
  9. area: 'Core',
  10. description: 'Defines processing timeout for the html sanitizer.',
  11. options: {},
  12. state: 20,
  13. preferences: {},
  14. frontend: false
  15. )
  16. end
  17. end