Correct deflation of gzipped wiki text. #523
This commit is contained in:
parent
76490fcda5
commit
894911f5dc
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user