Permalink
Browse files

added support for commas in return_to urls

  • Loading branch information...
1 parent bc97b65 commit c6e51bca92b4c19dd4066ddbdbc82ebff77f9bc1 Daniel Salet committed Jan 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rack/openid.rb
  2. +1 −1 rack-openid.gemspec
View
@@ -45,7 +45,7 @@ def self.parse_header(str)
key, *value = pair.split('=')
value = value.join('=')
value.gsub!(/^\"/, '').gsub!(/\"$/, "")
- value = value.split(',')
+ value = value.split(',') unless key == 'return_to'
params[key] = value.length > 1 ? value : value.first
}
end
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "rack-openid"
- s.version = "1.3.1"
+ s.version = "1.3.2"
s.date = "2011-02-25"
s.homepage = "http://github.com/josh/rack-openid"

1 comment on commit c6e51bc

This looks helpful. Do you have a test for it and have you considered opening a pull request for it at https://github.com/josh/rack-openid ?

Please sign in to comment.