Skip to content

Commit

Permalink
fix SecurityError
Browse files Browse the repository at this point in the history
`SecurityError: Insecure operation - gem_original_require`
  • Loading branch information
takkanm committed Sep 30, 2019
1 parent 8fdf06e commit 5722753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tzinfo/data_sources/ruby_data_source.rb
Expand Up @@ -126,7 +126,7 @@ def require_index(name)
#
# @param file [Array<String>] a relative path to a file to be required.
def require_data(*file)
require(File.join(@base_path, *file))
require(File.join(@base_path, *file).untaint)
end

# @return [String] a `String` containing TZInfo::Data version infomation
Expand Down

0 comments on commit 5722753

Please sign in to comment.