From 5a048d4449886c95835fe9afdbd345d2836d206d Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Wed, 7 Nov 2012 09:26:00 +1100 Subject: [PATCH] Strip all potential blank characters from Spree::Config[:site_url] inside asset_url method --- app/controllers/spree/checkout_controller_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index b5cabe2..c07f2a0 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/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)