lib/sup/crypto.rb in sup-1.1 vs lib/sup/crypto.rb in sup-1.2
- old
+ new
@@ -367,10 +367,10 @@
end
def retrieve fingerprint
require 'net/http'
uri = URI($config[:keyserver_url] || KEYSERVER_URL)
- unless uri.scheme == "http" and not uri.host.nil?
+ unless uri.scheme == "http" and not uri.host.nil? and not uri.host.empty?
return "Invalid url: #{uri}"
end
fingerprint = "0x" + fingerprint unless fingerprint[0..1] == "0x"
params = {op: "get", search: fingerprint}