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

Uri escape ssout #11

Closed jcwilk closed 13 years ago

jcwilk commented 13 years ago

Hello,

This is part of a pair of commits, the other being to rubycas-server. You can read further details about the situation at the other pull request: https://github.com/gunark/rubycas-server/pull/36 for the other commit: https://github.com/jcwilk/rubycas-server/commit/6df235217cdc82b110834223a4d729afac12ff46

The [].first{} thing i did in there is a little odd, but basically it evaluates to true when one of them matches, and whichever one matched will be the regex capture... That way whether it's URI.escape'd or not it should work (that is, if the previous behavior of not URI.escaping ever worked).

-John