diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-24 09:26:24 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-24 09:26:24 +0200 |
| commit | c1f922b3de788c1bb4e9b0dcf18f930897027446 (patch) | |
| tree | c3d66b5fd6d28d9f6c03a7e7a6366d4910759bce /lib | |
| parent | 7650a5a86b46f4cc0954c134b448c96313c6abf3 (diff) | |
| parent | 088d388e6d4dda42d9278e6da96ac3183ff09dcd (diff) | |
| download | caxlsx-c1f922b3de788c1bb4e9b0dcf18f930897027446.tar.gz caxlsx-c1f922b3de788c1bb4e9b0dcf18f930897027446.zip | |
Merge pull request #252 from tagliala/security/enable-security-cops
Enable Security cops
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/util/mime_type_utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/mime_type_utils.rb b/lib/axlsx/util/mime_type_utils.rb index c2e6909f..fbe39448 100644 --- a/lib/axlsx/util/mime_type_utils.rb +++ b/lib/axlsx/util/mime_type_utils.rb @@ -16,7 +16,7 @@ module Axlsx # @param [String] v URI # @return [String] File mime type def self.get_mime_type_from_uri(v) - Marcel::MimeType.for(URI.open(v)) + Marcel::MimeType.for(URI.parse(v).open) end end end |
