basho/riak_kv — pull request #375 by glickbot (2012-07-27 21:52:57+00:00)
Title: Corrected the order of the host tokens to enable referer validation.

Effect: All http requests to riak which pass a referer header get a 403 response due to the referer validation failing.

The host token order of 'OriginTuple' within 'is_valid_referer(RD)' was backwards. It was checking '1.0.0.127' against '127.0.0.1', or 'com.basho.www' against 'www.basho.com', and thus always failing.