Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d34279c

Browse files
committed
Fix the checking
1 parent 84ceb60 commit d34279c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

engine/repositories/file_fs_repository.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ std::filesystem::path SanitizePath(const std::filesystem::path & user_input,
2121
if (std::filesystem::equivalent(p, abs_base)) {
2222
return resolved_path;
2323
}
24-
}
25-
26-
return resolved_path;
24+
}
25+
return {};
2726
}
2827

2928
cpp::result<void, std::string> FileFsRepository::StoreFile(

0 commit comments

Comments
 (0)