Fix bug if app_config[url] has no trailing slash. Thanks to binarycleric.
This commit is contained in:
parent
ecc7a55f8b
commit
9e90463455
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue