Fix bug if app_config[url] has no trailing slash. Thanks to binarycleric.

This commit is contained in:
Raphael 2010-10-14 17:29:26 -07:00
parent ecc7a55f8b
commit 9e90463455

View file

@ -80,7 +80,8 @@ class UsersController < ApplicationController
private
def prep_image_url(params)
url = APP_CONFIG[:pod_url].chop if APP_CONFIG[:pod_url][-1,1] == '/'
url = APP_CONFIG[:pod_url].dup
url.chop! if APP_CONFIG[:pod_url][-1,1] == '/'
if params[:profile][:image_url].empty?
params[:profile].delete(:image_url)
else