rubycas / rubycas-client

Ruby client for Yale's Central Authentication Service protocol -- an open source enterprise single sign on system for web applications.
http://code.google.com/p/rubycas-client/
Other
332 stars 217 forks source link

[FIX INCLUDED] Some query strings in a referrer cause an exception when logging out. #6

Closed ryanwilliams closed 14 years ago

ryanwilliams commented 14 years ago

When logging out of RubyCAS with a referrer that has a query string containing just a key (e.g. foo.html?12345) an exception is generated by hash_to_query.

To fix, simply replace the offending line with the one below (around line 250 of casclient/client.rb):

vals.each {|v| pairs << (v.nil? ? CGI.escape(k) : "#{CGI.escape(k)}=#{CGI.escape(v)}")}

zuk commented 14 years ago

Thanks!

zuk commented 14 years ago

Merged