aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-04-17 09:05:54 -0700
committerAdam Soltys <[email protected]>2023-04-17 09:05:54 -0700
commit7edfc9f250f0d79111da479f57d4c311fa8057d3 (patch)
tree109e7367c43dc22cf677d7fddc090d830ddb09d8 /src
parentca4c8a9b047688389ba56dc485c1075c3d339087 (diff)
downloadcoinos-ui-7edfc9f250f0d79111da479f57d4c311fa8057d3.tar.gz
coinos-ui-7edfc9f250f0d79111da479f57d4c311fa8057d3.zip
redirect to scanned urls
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/send/[...text]/+page.server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js
index 9c7d4185..dbe2b660 100644
--- a/src/routes/(app)/send/[...text]/+page.server.js
+++ b/src/routes/(app)/send/[...text]/+page.server.js
@@ -6,6 +6,8 @@ import { fail, redirect } from '@sveltejs/kit';
let parse = async (t, host) => {
if (!t) return;
+ if (t.startsWith('http')) throw redirect(307, t);
+
let amount, user, id;
t = t.trim();