From 0b19b77b5fe692b978f0fffbc3e886caea82645e Mon Sep 17 00:00:00 2001
From: Uiri <uiri00@gmail.com>
Date: Sat, 25 Sep 2010 17:34:13 -0400
Subject: [PATCH] A fix for the image breaking if you don't change anything on
 the edit profile page but hit update profile instead of cancel

---
 app/controllers/users_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 819a88d288..30555d20a1 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -31,7 +31,7 @@ class UsersController < ApplicationController
       params[:profile].delete(:image_url)
     else
       url = APP_CONFIG[:pod_url].chop if APP_CONFIG[:pod_url][-1,1] == '/'
-      params[:profile][:image_url] = url + params[:profile][:image_url]
+      params[:profile][:image_url] = params[:profile][:image_url]
     end
   end
 
-- 
GitLab