From 295aef32abaf273a7c61cf07f0026cae9277b7ed Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Fri, 9 Nov 2012 16:31:36 +0800 Subject: [PATCH] change host with host_with_port --- .../controllers/panel/gprs/back_end/locations_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/built_in_modules/gprs/app/controllers/panel/gprs/back_end/locations_controller.rb b/vendor/built_in_modules/gprs/app/controllers/panel/gprs/back_end/locations_controller.rb index 5baec2cc..884e5d13 100644 --- a/vendor/built_in_modules/gprs/app/controllers/panel/gprs/back_end/locations_controller.rb +++ b/vendor/built_in_modules/gprs/app/controllers/panel/gprs/back_end/locations_controller.rb @@ -59,8 +59,8 @@ class Panel::Gprs::BackEnd::LocationsController < OrbitBackendController @data = Array.new locations.each do |location| - picurl = "http://"+request.host + location.file.url - thumburl = "http://"+request.host + location.file.thumb.url + picurl = "http://#{request.host_with_port + location.file.url}", + thumburl = "http://#{request.host_with_port + location.file.thumb.url}" @data << { name: location.name, pic_url: picurl, thumb_url: thumburl,