We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 489cb2c commit 04c3488Copy full SHA for 04c3488
1 file changed
app/controllers/application_controller.rb
@@ -138,7 +138,7 @@ def authenticate
138
if ENV["BASIC_AUTH_BYPASS"].present?
139
header_key, header_value = ENV["BASIC_AUTH_BYPASS"].split(":").map(&:strip)
140
141
- if ENV["BASIC_AUTH_BYPASS"].present? && request.headers.key?(header_key) and request.headers[header_key] == header_value
+ if ENV["BASIC_AUTH_BYPASS"].present? && request.headers.key?(header_key) && (request.headers[header_key] == header_value)
142
return true
143
end
144
0 commit comments