Skip to content

Commit

Permalink
added sanitization to vectorize_folder paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed Jul 21, 2024
1 parent 28ee567 commit aeace79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lollms/server/endpoints/lollms_file_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from lollms.server.elf_server import LOLLMSElfServer
from fastapi.responses import FileResponse
from lollms.binding import BindingBuilder, InstallOption
from lollms.security import sanitize_path_from_endpoint
from lollms.security import sanitize_path
from ascii_colors import ASCIIColors
from lollms.utilities import load_config, trace_exception, gc, PackageManager, run_async
from pathlib import Path
Expand Down Expand Up @@ -306,7 +306,7 @@ def process():
if "::" in database_infos.db_path:
parts = database_infos.db_path.split("::")
db_name = parts[0]
folder_path = parts[1]
folder_path = sanitize_path(parts[1], True)
else:
import tkinter as tk
from tkinter import simpledialog, filedialog
Expand Down

0 comments on commit aeace79

Please sign in to comment.