bug/bundler_fix
jvazquez-r7 2013-05-08 21:43:55 -05:00
commit 1c395666c5
1 changed files with 3 additions and 0 deletions

View File

@ -2797,6 +2797,9 @@ class DBManager
::File.open(filename, 'rb') do |f|
data = f.read(4)
end
if data.nil?
raise DBImportError.new("Zero-length file")
end
case data[0,4]
when "PK\x03\x04"