Prevents an invalid redirect from being performed via a malformed request.
Merge pull request #131 from broamski/master

Prevents an invalid redirect from being performed via a malformed request