@somewhere-cloud/cli 0.38.41 → 0.38.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2453,10 +2453,10 @@ export function useMagicLinkRequest(): MagicLinkRequest {
|
|
|
2453
2453
|
*/
|
|
2454
2454
|
export function landingTarget(search: string, origin: string): string {
|
|
2455
2455
|
const requested = new URLSearchParams(search).get('redirect_uri');
|
|
2456
|
-
if (!requested) return '/';
|
|
2456
|
+
if (!requested || requested.startsWith('//') || requested.includes('\\\\')) return '/';
|
|
2457
2457
|
try {
|
|
2458
2458
|
const url = new URL(requested, origin);
|
|
2459
|
-
return url.origin === origin
|
|
2459
|
+
return url.origin === origin && !url.pathname.startsWith('//') ? url.href : '/';
|
|
2460
2460
|
} catch {
|
|
2461
2461
|
return '/';
|
|
2462
2462
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@somewhere-cloud/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.43",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@somewhere-cloud/cli",
|
|
9
|
-
"version": "0.38.
|
|
9
|
+
"version": "0.38.43",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@modelcontextprotocol/sdk",
|
|
12
12
|
"chokidar",
|
package/package.json
CHANGED