address feedback
parent
930c9dc835
commit
314b0698ee
|
@ -1259,8 +1259,8 @@ module Zip
|
|||
@cdirOffset = ZipEntry::read_zip_long(buf)
|
||||
commentLength = ZipEntry::read_zip_short(buf)
|
||||
@comment = buf.read(commentLength)
|
||||
# remove trailing \n or \f or \r symbol
|
||||
buf.gsub!(/\s/,'')
|
||||
# remove trailing \n symbol
|
||||
buf.chomp!
|
||||
raise ZipError, "Zip consistency problem while reading eocd structure" unless buf.size == 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue