From ad28f0cf82e4f9153767b727f5d54b8fe51b52d7 Mon Sep 17 00:00:00 2001 From: ilya Date: Sat, 26 Jun 2010 00:58:24 -0400 Subject: [PATCH] RS, IZ; Maybe commited --- app/controllers/dashboard_controller.rb | 2 +- lib/common.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index c8d14858f..834b33395 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -9,7 +9,7 @@ class DashboardController < ApplicationController def receive - store_posts_from_xml (params[:xml]) + store_posts_from_xml CGI::unescape(params[:xml]) render :nothing => true end diff --git a/lib/common.rb b/lib/common.rb index 14afff2f3..0d1320361 100644 --- a/lib/common.rb +++ b/lib/common.rb @@ -8,7 +8,7 @@ module Diaspora def notify_friends if self.person_id == User.first.id xml = Post.build_xml_for(self) - @@queue.add_post_request( friends_with_permissions, xml ) + @@queue.add_post_request( friends_with_permissions, CGI::escape(xml) ) @@queue.process end end