Merge pull request #1923 from internetee/fix-domain-history-view

Fix domain history viewing pending_json
This commit is contained in:
Alex Sherman 2021-04-13 15:20:28 +05:00 committed by GitHub
commit 151ba314c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -58,8 +58,8 @@ class Nameserver < ApplicationRecord
end
def hostname=(hostname)
self[:hostname] = SimpleIDN.to_unicode(hostname).gsub(/\.+$/, '')
self[:hostname_puny] = SimpleIDN.to_ascii(hostname).gsub(/\.+$/, '')
self[:hostname] = SimpleIDN.to_unicode(hostname)&.gsub(/\.+$/, '')
self[:hostname_puny] = SimpleIDN.to_ascii(hostname)&.gsub(/\.+$/, '')
end
class << self

View file

@ -139,7 +139,7 @@
%td{colspan: 9}
= preserve do
%pre
- formatted_req = Nokogiri::XML(domain.pending_json['frame'])
- formatted_req = Nokogiri::XML(domain.pending_json['frame'].to_json)
- if formatted_req.errors.none?
= formatted_req
- else