aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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();