Skip to content

Commit

Permalink
Edge case: Very long FBOS version names
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Aug 28, 2021
1 parent 39dca16 commit 248741b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/abstract_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def mark_as_seen(bot = (current_user && current_user.device))
bot.last_saw_api = Time.now
# Do _not_ set the FBOS version to 0.0.0 if the UA header is missing.
if v > NULL && v < NOT_FBOS
bot.fbos_version = v.to_s
bot.fbos_version = (v.to_s || "").first(14)
bot.save!
end
end
Expand Down
1 change: 0 additions & 1 deletion app/controllers/api/rmq_utils_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def do_rate_limit
end

def deny(reason)
puts "=== DENIED: #{reason}"
maybe_alert_user(reason)
render json: "deny", status: 403
end
Expand Down

0 comments on commit 248741b

Please sign in to comment.