Skip to content

Commit

Permalink
Don't make iframes recursively load the same page!
Browse files Browse the repository at this point in the history
  • Loading branch information
achlipala committed Jul 29, 2020
1 parent fb31664 commit 15aaea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/c/ajaxUpload.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uw_Basis_string uw_AjaxUploadFfi_tweakForm(uw_context ctx, uw_Basis_bool autoSub
iframeId,
"\" name=\"",
iframeId,
"\" src=\"#\" style=\"width:0;height:0;border:0px solid #fff;\"></iframe>\n<script type=\"text/javascript\">var subm = document.getElementById(\"",
"\" src=\"about:blank\" style=\"width:0;height:0;border:0px solid #fff;\"></iframe>\n<script type=\"text/javascript\">var subm = document.getElementById(\"",
submitId,
"\"); subm.parentNode.target = \"",
iframeId,
Expand Down
2 changes: 1 addition & 1 deletion src/js/ajaxUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function tweakForm(autoSubmit, iframeId, submitId) {
+ iframeId
+ "\" name=\""
+ iframeId
+ "\" src=\"#\" style=\"width:0;height:0;border:0px solid #fff;\"></iframe>\n<script type=\"text/javascript\">tweakFormCode("
+ "\" src=\"about:blank\" style=\"width:0;height:0;border:0px solid #fff;\"></iframe>\n<script type=\"text/javascript\">tweakFormCode("
+ autoSubmit
+ ",\""
+ iframeId
Expand Down

0 comments on commit 15aaea9

Please sign in to comment.