v.2.6.1
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ export const sqliteTool = {
|
||||
if (!dbPath) return { success: false, error: 'db_path is required' };
|
||||
if (!query) return { success: false, error: 'query is required' };
|
||||
|
||||
const workspacePath = getWorkspacePath();
|
||||
const workspacePath = String(args?._workspacePath || args?._workspace || '') || getWorkspacePath();
|
||||
const resolved = path.isAbsolute(dbPath) ? dbPath : path.resolve(workspacePath, dbPath);
|
||||
|
||||
if (!isPathInsideDir(workspacePath, resolved)) {
|
||||
|
||||
Reference in New Issue
Block a user