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
commitfae19aaf71cb2581011d3a0488566da441122b04 (patch)
tree109e7367c43dc22cf677d7fddc090d830ddb09d8 /src
parent472a9c99b298bcfabf944905f833ffe61cf22d63 (diff)
downloadcoinos-ui-fae19aaf71cb2581011d3a0488566da441122b04.tar.gz
coinos-ui-fae19aaf71cb2581011d3a0488566da441122b04.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();