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

This commit is contained in:
Ryan Bigg 2012-11-07 09:26:00 +11:00
parent a95329aa9e
commit 5a048d4449
1 changed files with 1 additions and 1 deletions

View File

@ -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)