File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
vnext/Microsoft.ReactNative.Cxx.UnitTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,9 @@ TEST(PathValidatorTest, BlobIDLengthLimit) {
135135
136136TEST (PathValidatorTest, BundlePathTraversalBlocked) {
137137 // SDL: Block path traversal in bundle paths
138- EXPECT_THROW (PathValidator::ValidateBundlePath (" ../../etc/passwd" ), ValidationException);
139- EXPECT_THROW (PathValidator::ValidateBundlePath (" ..\\ ..\\ windows" ), ValidationException);
140- EXPECT_THROW (PathValidator::ValidateBundlePath (" %2e%2e%2f" ), ValidationException);
138+ EXPECT_THROW (PathValidator::ValidateFilePath (" ../../etc/passwd" , " C: \\ app " ), ValidationException);
139+ EXPECT_THROW (PathValidator::ValidateFilePath (" ..\\ ..\\ windows" , " C: \\ app " ), ValidationException);
140+ EXPECT_THROW (PathValidator::ValidateFilePath (" %2e%2e%2f" , " C: \\ app " ), ValidationException);
141141}
142142
143143// ============================================================================
You can’t perform that action at this time.
0 commit comments