SECURITY: use strict JSON parsing when parsing backup metadata

This commit is contained in:
Régis Hanol 2020-01-15 22:05:38 +01:00
parent ad7a13921f
commit 65831f4d3e

View File

@ -220,7 +220,7 @@ module BackupRestore
) )
end end
data = Oj.load_file(@meta_filename) data = JSON.parse File.read(@meta_filename)
raise "Failed to load metadata file." if !data raise "Failed to load metadata file." if !data
data data
else else