mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Story#121580929 fix when incoming frame is empty
This commit is contained in:
parent
37952d22ed
commit
371ec46f42
2 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,8 @@ class EppConstraint
|
|||
def matches?(request)
|
||||
# TODO: Maybe move this to controller to keep params clean
|
||||
request.params[:raw_frame] = request.params[:raw_frame].gsub!(/(?<=>)(.*?)(?=<)/) { |s| s.strip} if request.params[:raw_frame]
|
||||
request.params[:nokogiri_frame] ||= Nokogiri::XML(request.params[:raw_frame])
|
||||
request.params[:parsed_frame] ||= request.params[:nokogiri_frame].dup.remove_namespaces!
|
||||
request.params[:nokogiri_frame] ||= Nokogiri::XML(request.params[:raw_frame] || request.params[:frame])
|
||||
request.params[:parsed_frame] ||= request.params[:nokogiri_frame].dup.remove_namespaces!
|
||||
|
||||
unless [:keyrelay, :poll, :session, :not_found].include?(@type)
|
||||
element = "//#{@type}:#{request.params[:action]}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue