Skip to content

Commit

Permalink
Script whoopsy
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 8, 2023
1 parent 77033eb commit bd39cf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2857,9 +2857,9 @@ function popup_skeleton(options) {
form.setAttribute("action", options.action);
form.setAttribute("method", options.method || "post");
}
if (f.getAttribute("method") === "post"
&& !/post=/.test(f.getAttribute("action"))
&& !/^(?:[a-z][-a-z0-9+.]*:|\/\/)/i.test(f.getAttribute("action"))) {
if (form.getAttribute("method") === "post"
&& !/post=/.test(form.getAttribute("action"))
&& !/^(?:[a-z][-a-z0-9+.]*:|\/\/)/i.test(form.getAttribute("action"))) {
form.prepend(hidden_input("post", siteinfo.postvalue));
}
}
Expand Down

0 comments on commit bd39cf2

Please sign in to comment.