Commit 894911f5 authored by Felix Schäfer's avatar Felix Schäfer

Correct deflation of gzipped wiki text. #523

parent 76490fcd
...@@ -101,9 +101,9 @@ class WikiContent < ActiveRecord::Base ...@@ -101,9 +101,9 @@ class WikiContent < ActiveRecord::Base
end end
def text def text
@text ||= case changes[:compression] @text ||= case changes["compression"]
when 'gzip' when "gzip"
Zlib::Inflate.inflate(data) Zlib::Inflate.inflate(changes["data"])
else else
# uncompressed data # uncompressed data
changes["data"] changes["data"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment