Fixes WebSite#xml_rpc_url bug (Thanks Patrick for the report)

This commit is contained in:
erwanlr
2013-03-04 16:34:49 +01:00
parent 80c817b2e2
commit 8bc8d7e7cd
2 changed files with 38 additions and 12 deletions

View File

@@ -52,9 +52,9 @@ class WebSite
@xmlrpc_url = nil
unless headers.nil?
value = headers['X-Pingback']
unless value.nil? && value.empty?
@xmlrpc_url = value
pingback_url = headers['X-Pingback']
unless pingback_url.nil? || pingback_url.empty?
@xmlrpc_url = pingback_url
end
end
end