From 21896c35df42e302b641314ff1609d4c435354ab Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Fri, 4 Mar 2016 12:42:19 +0200 Subject: [PATCH] Story#105842700 - Legal doc is already saved at this point and sometimes path is not official --- app/models/epp/domain.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index 739c55bec..d077f9236 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -849,6 +849,7 @@ class Epp::Domain < Domain ld = parsed_frame.css('legalDocument').first return nil unless ld return nil if ld.text.starts_with?(ENV['legal_documents_dir']) # escape reloading + return nil if ld.text.starts_with?('/home/') # escape reloading { body: ld.text,