fix: 7zip shows different error messages for wrong password

This commit is contained in:
sxyazi 2024-08-09 21:33:50 +08:00
parent 3bb867c5bd
commit dd2ef7ae86
No known key found for this signature in database

View file

@ -137,9 +137,6 @@ function M:list_files(args, skip, limit)
return files, i, code return files, i, code
end end
function M:is_encrypted(s) function M:is_encrypted(s) return s:find(". Wrong password?", 1, true) end
return s:find("Cannot open encrypted archive. Wrong password?", 1, true)
or s:find("Data Error in encrypted file. Wrong password?", 1, true)
end
return M return M