From 894911f5dc73ad1566fffea2e85437681800f68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Fri, 29 Jul 2011 10:19:43 +0200 Subject: [PATCH] Correct deflation of gzipped wiki text. #523 --- app/models/wiki_content.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb index 9533a8a7..9023e2e2 100644 --- a/app/models/wiki_content.rb +++ b/app/models/wiki_content.rb @@ -101,9 +101,9 @@ class WikiContent < ActiveRecord::Base end def text - @text ||= case changes[:compression] - when 'gzip' - Zlib::Inflate.inflate(data) + @text ||= case changes["compression"] + when "gzip" + Zlib::Inflate.inflate(changes["data"]) else # uncompressed data changes["data"]