lucide-ruby 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lucide_ruby/tasks/lucide.rake +3 -3
- data/lib/lucide_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f40706628f265d6315af92115ccfa6cb3fd88819af1d8819343ef3a4c898a540
|
|
4
|
+
data.tar.gz: 28fdcde9c4f501eb1e574ff1758107285ced8a3324579c4657884b2513a5d96f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e50440309745ff546050698d05c6ff809f5811506ef9ce271cb59a951fad1821176d06fb53b235299ab689b10d76df1efe9db25e247905144b02a57188f1be3b
|
|
7
|
+
data.tar.gz: 8d369fa80be42a4040c96377958e4be1eab812da092b1854b39e6e958a618780af82e1d72f6275c43bb4aa3f1370c19f3af6463a7ab109025a497458062f6f8b
|
|
@@ -146,10 +146,10 @@ def extract_zip(zip_path, extract_path)
|
|
|
146
146
|
|
|
147
147
|
Zip::File.open(zip_path) do |zip_file|
|
|
148
148
|
zip_file.each do |entry|
|
|
149
|
-
entry_path = File.
|
|
149
|
+
entry_path = File.join(real_extract_path, entry.name)
|
|
150
150
|
|
|
151
|
-
# Prevent zip slip
|
|
152
|
-
unless entry_path.start_with?(real_extract_path)
|
|
151
|
+
# Prevent zip slip - expand_path normalizes ".." segments
|
|
152
|
+
unless File.expand_path(entry_path).start_with?(real_extract_path)
|
|
153
153
|
raise LucideRuby::SyncError, "Zip slip detected: #{entry.name}"
|
|
154
154
|
end
|
|
155
155
|
|
data/lib/lucide_ruby/version.rb
CHANGED