Fixed safe redirects when unsafe redirections is set to true. Fixes issue #1