fix bug with empty identity URL

This commit is contained in:
Stefan Richter 2011-01-24 03:50:01 +08:00 committed by Reinier Balt
parent 5ac3f242bc
commit 2c0cf2e457

View file

@ -264,6 +264,13 @@ protected
def normalize_open_id_url
return if open_id_url.nil?
# fixup empty url value
if open_id_url.empty?
self.open_id_url = nil
return
end
self.open_id_url = OpenIdAuthentication.normalize_identifier(open_id_url)
end
end