ysbaddaden/janus — pull request #12 by ysbaddaden (2014-08-27 09:55:45+00:00)
Title: Validate host before redirect on login

Janus used to blindly redirect to `params[:return_to]` whenever the host was request.host (no security issues), but the developer was missing the possibility to interupt the redirect if the host isn't accessible for some reason. This PR thus introduces the `valid_host?` method to allow it.