diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-08-09 09:39:36 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-09-05 18:51:01 +0200 |
commit | d30fbc0900adc6fec032d34291220e9748da9e74 (patch) | |
tree | 54fc0265a11549667528fa45ae36c9bf0f32dbe2 | |
parent | a62d9a9a78cb1f3307470b6c4f4398c547ed5816 (diff) |
Fix blocking subdomains of an already-blocked domain (#26392)
-rw-r--r-- | app/controllers/admin/domain_blocks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/domain_blocks_controller.rb b/app/controllers/admin/domain_blocks_controller.rb index 16defc1ea87..d1a9ea6012a 100644 --- a/app/controllers/admin/domain_blocks_controller.rb +++ b/app/controllers/admin/domain_blocks_controller.rb @@ -25,7 +25,7 @@ module Admin @domain_block.errors.delete(:domain) render :new else - if existing_domain_block.present? + if existing_domain_block.present? && existing_domain_block.domain == TagManager.instance.normalize_domain(@domain_block.domain.strip) @domain_block = existing_domain_block @domain_block.update(resource_params) end |