class PactBroker::UI::Controllers::Base
Public Instance Methods
Source
# File lib/pact_broker/ui/controllers/base_controller.rb, line 19 def base_url # Using the X-Forwarded headers in the UI can leave the app vulnerable # https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/ # Either use the explicitly configured base url or an empty string, # rather than request.base_url, which uses the X-Forwarded headers. env["pactbroker.base_url"] || "" end
Source
# File lib/pact_broker/ui/controllers/base_controller.rb, line 28 def ellipsisize(string) string.ellipsisize end