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).
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