Forum: Ruby on Rails Bug in plug-in open_id_authentication

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Vikrant (Guest)
on 2009-02-26 12:09
(Received via mailing list)
There is a little bug in open_id_authentication plug-in at line 87 of
file lib/open_id_authentication.rb

  identifier = "http://#{identifier}" unless identifier =~ /^http/i

this line will silently ignore the uri "" without
normalising it to ""

at present, writing OpenIdAuthentication.normalize_identifier
('') raises a NoMethodError.

Proposed solution is to replace /^http/i with /^http:/i

   identifier = "http://#{identifier}" unless identifier =~ /^http:/i

I'm reporting this bug here, because don't know how to submit patch
(or whatever we call it) for Git repository. Also guys at will let you sign-in with an OpenID but won't let
you sign-up with one! So bad.
Vikrant (Guest)
on 2009-03-16 16:04
(Received via mailing list)
there is a bug, it actually should be -
 identifier = "http://#{identifier}" unless identifier =~ /^https?:/i
This topic is locked and can not be replied to.