diff --git a/landing/package.json b/landing/package.json index 011f34e..d4f7fa3 100644 --- a/landing/package.json +++ b/landing/package.json @@ -19,7 +19,7 @@ "@types/three": "^0.184.1", "framer-motion": "^12.40.0", "lucide-react": "^1.17.0", - "next": "16.3.3", + "next": "16.3.8", "react": "19.2.4", "react-dom": "19.2.4", "three": "^0.184.0" diff --git a/src/services/organizer.ts b/src/services/organizer.ts index 7673e59..b00a547 100644 --- a/src/services/organizer.ts +++ b/src/services/organizer.ts @@ -809,6 +809,13 @@ async function organizerSourcesMatch(left: string, right: string): Promise value === mountBase || value.startsWith(mountBase + path.sep); + if (isMountedPath(leftAbsolute) || isMountedPath(rightAbsolute)) return false; + const [leftReal, rightReal] = await Promise.all([ fsp.realpath(leftAbsolute).catch(() => leftAbsolute), fsp.realpath(rightAbsolute).catch(() => rightAbsolute), @@ -818,6 +825,8 @@ async function organizerSourcesMatch(left: string, right: string): Promise { const absolute = path.normalize(path.resolve(source)); + const mountBase = path.normalize(path.resolve(config.mountBase)); + if (absolute === mountBase || absolute.startsWith(mountBase + path.sep)) return absolute; return fsp.realpath(absolute).then((resolved) => path.normalize(resolved)).catch(() => absolute); } diff --git a/web/package.json b/web/package.json index 1b7204f..fd15fa2 100644 --- a/web/package.json +++ b/web/package.json @@ -25,7 +25,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^0.561.0", - "next": "16.3.3", + "next": "16.3.8", "next-themes": "^0.4.6", "react": "19.2.1", "react-dom": "19.2.1",