CGI unescape incoming salmons

This commit is contained in:
Raphael 2010-10-08 15:59:32 -07:00
parent a720694364
commit 6cbe4075f4

View file

@ -2,7 +2,7 @@ module Diaspora
module UserModules
module Receiving
def receive_salmon salmon_xml
salmon = Salmon::SalmonSlap.parse salmon_xml, self
salmon = Salmon::SalmonSlap.parse(CGI::unescape salmon_xml, self)
if salmon.verified_for_key?(salmon.author.public_key)
Rails.logger.info("data in salmon: #{salmon.parsed_data}")
self.receive(salmon.parsed_data)