Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/steven-tey/dub
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Sep 22, 2022
2 parents ccbcad1 + 57c0f58 commit 792ea67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/home/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Demo = () => {
onSubmit={async (e) => {
e.preventDefault();
setSaving(true);
fetch(`/api/edge/links?url=${url}&hostname=dub.sh`, {
fetch(`/api/edge/links?url=${encodeURIComponent(url)}&hostname=dub.sh`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 792ea67

Please sign in to comment.