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
|
||||
|
||||
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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user