We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8128886 + 7c609f9 commit 2fed359Copy full SHA for 2fed359
get_test.go
@@ -431,6 +431,13 @@ func TestGetFile_checksum_from_file(t *testing.T) {
431
true,
432
false,
433
},
434
+
435
+ // assert arbitrary files will not be read
436
+ {
437
+ "?checksum=file:" + checksums + "/multifile-sha1.sum",
438
+ true,
439
+ false,
440
+ },
441
}
442
443
for _, tc := range cases {
testdata/checksum-file/multifile-sha1.sum
@@ -0,0 +1,2 @@
1
+e2c7dc83ac8aa7f181314387f6dfb132cd117e3a content.txt
2
+0000000000000000000000000000000000000000 md5-bsd-bad.sum
0 commit comments