Skip to content

Commit d835af6

Browse files
committed
fix typo
1 parent 31bd285 commit d835af6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cycode/cli/apps/mcp/mcp_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ def __enter__(self) -> list[str]:
133133
sanitized_path = _sanitize_file_path(file_path)
134134
temp_file_path = os.path.join(self.temp_base_dir, sanitized_path)
135135

136-
# Ensure the normilized path is still within our temp directory
137-
normilized_temp_path = os.path.normpath(temp_file_path)
138-
normilized_base_path = os.path.normpath(self.temp_base_dir)
139-
if not normilized_temp_path.startswith(normilized_base_path + os.sep):
136+
# Ensure the normalized path is still within our temp directory
137+
normalized_temp_path = os.path.normpath(temp_file_path)
138+
normalized_base_path = os.path.normpath(self.temp_base_dir)
139+
if not normalized_temp_path.startswith(normalized_base_path + os.sep):
140140
raise ValueError(f'Path escapes temporary directory: {file_path}')
141141

142142
os.makedirs(os.path.dirname(temp_file_path), exist_ok=True)

0 commit comments

Comments
 (0)