convert user-agent to lowercase when checking bots with wild cards

This commit is contained in:
cowboycoded 2011-02-04 10:59:05 -05:00
parent 64144c37aa
commit 801b960cf4
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class ApplicationController < ActionController::Base
private
def bypass
Impressionist::Bots::WILD_CARDS.each do |wild_card|
return true if request.user_agent.include? wild_card
return true if request.user_agent.downcase.include? wild_card
end
Impressionist::Bots::LIST.include? request.user_agent
end