mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 20:27:58 +00:00
added sanitization to vectorize_folder paths
This commit is contained in:
parent
28ee567a9a
commit
aeace796d8
@ -14,7 +14,7 @@ import pkg_resources
|
||||
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
|
||||
@ -306,7 +306,7 @@ async def vectorize_folder(database_infos: FolderInfos):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user