Skip to content

Commit

Permalink
Merge pull request #2588 from internetee/update-nokogiri
Browse files Browse the repository at this point in the history
Refactored parsed response for dnskey
  • Loading branch information
vohmar authored Jun 7, 2023
2 parents 5b739e6 + ec37b86 commit 61c7b59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/epp/domains_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ def validate_update
end

def parsed_response_for_dnskey(value)
doc = Nokogiri::Slop params[:parsed_frame].css(value).to_html
frame = params[:parsed_frame].css(value)
return true if frame.empty?

doc = Nokogiri::Slop frame.to_html
return true if doc.document.children.empty?

store = []
Expand Down

0 comments on commit 61c7b59

Please sign in to comment.