From 4c52e3b0b4ae7c556ca7609823d2e307528f0028 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 24 Jul 2015 12:52:59 +0300 Subject: [PATCH] Skip some validations #2752 --- app/controllers/epp_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/epp_controller.rb b/app/controllers/epp_controller.rb index 931878979..5ddfe104a 100644 --- a/app/controllers/epp_controller.rb +++ b/app/controllers/epp_controller.rb @@ -9,7 +9,7 @@ class EppController < ApplicationController before_action :validate_against_schema def validate_against_schema - return if ['hello', 'error'].include?(params[:action]) + return if ['hello', 'error', 'keyrelay', 'not_found'].include?(params[:action]) params[:schema] = 'epp-1.0.xsd' unless params[:schema] xsd = Nokogiri::XML::Schema(File.read("lib/schemas/#{params[:schema]}")) xsd.validate(params[:nokogiri_frame]).each do |error|