Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/safe_zip/entry.rb')
-rw-r--r--lib/safe_zip/entry.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/safe_zip/entry.rb b/lib/safe_zip/entry.rb
index 664e2f52f91..52d70e83154 100644
--- a/lib/safe_zip/entry.rb
+++ b/lib/safe_zip/entry.rb
@@ -44,7 +44,7 @@ module SafeZip
end
rescue SafeZip::Extract::Error
raise
- rescue => e
+ rescue StandardError => e
raise SafeZip::Extract::ExtractError, e.message
end
@@ -90,7 +90,7 @@ module SafeZip
def expand_symlink(source_path)
::File.realpath(source_path, path_dir)
- rescue
+ rescue StandardError
raise SafeZip::Extract::SymlinkSourceDoesNotExistError, "Symlink source #{source_path} does not exist"
end
end