Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jan 13, 2023
1 parent 10fc355 commit b665068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/tidy-plants-relate.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@sveltejs/kit': patch
---

fix: avoid input name overriding form action and method checks
fix: avoid input name clobbering form method check
1 change: 1 addition & 0 deletions packages/kit/src/runtime/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,7 @@ export function create_client({ target, base }) {
);

const method = submitter?.formMethod || form.method;

if (method !== 'get') return;

const url = new URL(
Expand Down

0 comments on commit b665068

Please sign in to comment.