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
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"]
......
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