We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d11ad5 commit b64d764Copy full SHA for b64d764
backend/utils.py
@@ -132,6 +132,11 @@ def delete_folder(notes_dir: str, folder_path: str) -> bool:
132
try:
133
full_path = Path(notes_dir) / folder_path
134
135
+ # Security check: ensure the path is within notes_dir
136
+ if not validate_path_security(notes_dir, full_path):
137
+ print(f"Security: Path is outside notes directory: {full_path}")
138
+ return False
139
+
140
if not full_path.exists():
141
print(f"Folder does not exist: {full_path}")
142
return False
0 commit comments