Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Attempt to fix regression with tip button (#91)
Browse files Browse the repository at this point in the history
In porting crsf.py from Django I neglected to clean up an API call for
accessing the Referer header.
  • Loading branch information
chadwhitacre committed Jun 29, 2012
1 parent 7e9e5de commit 5556fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gittip/csrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def inbound(request):
# Barth et al. found that the Referer header is missing for
# same-domain requests in only about 0.2% of cases or less, so
# we can use strict Referer checking.
referer = request.headers.get('HTTP_REFERER')
referer = request.headers.get('Referer')
if referer is None:
raise Response(403, REASON_NO_REFERER)

Expand Down

0 comments on commit 5556fd8

Please sign in to comment.