This project is archived and is in readonly mode.

#5612 ✓wontfix

request.referrer never returns nil for no referrer

Reported by Trung | September 11th, 2010 @ 12:15 AM

# the referer of the client or '/'
def referer
  @env['HTTP_REFERER'] || '/'

shouldn't the referrer method return nil? else this will fool me into believing that the referrer might be the homepage.

Edited by Rohit Arondekar for formating.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>