diff options
| author | Adam Soltys <[email protected]> | 2023-04-17 09:05:54 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-17 09:05:54 -0700 |
| commit | fae19aaf71cb2581011d3a0488566da441122b04 (patch) | |
| tree | 109e7367c43dc22cf677d7fddc090d830ddb09d8 | |
| parent | 472a9c99b298bcfabf944905f833ffe61cf22d63 (diff) | |
| download | coinos-ui-fae19aaf71cb2581011d3a0488566da441122b04.tar.gz coinos-ui-fae19aaf71cb2581011d3a0488566da441122b04.zip | |
redirect to scanned urls
| -rw-r--r-- | src/routes/(app)/send/[...text]/+page.server.js | 2 |
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(); |
