Strip all potential blank characters from Spree::Config[:site_url] inside asset_url method

1-2-stable-sysmocom
Ryan Bigg 10 years ago
parent a95329aa9e
commit 5a048d4449
  1. 2
      app/controllers/spree/checkout_controller_decorator.rb

@ -177,7 +177,7 @@ module Spree
private
def asset_url(_path)
URI::HTTP.build(:path => ActionController::Base.helpers.asset_path(_path), :host => Spree::Config[:site_url]).to_s
URI::HTTP.build(:path => ActionController::Base.helpers.asset_path(_path), :host => Spree::Config[:site_url].strip).to_s
end
def record_log(payment, response)

Loading…
Cancel
Save