Story#105842700 - Legal doc is already saved at this point and sometimes path is not official

This commit is contained in:
Vladimir Krylov 2016-03-04 12:42:19 +02:00
parent 9df7e7cb9c
commit 21896c35df

View file

@ -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,