Browse Source

Improve handling of empty iframe src

"about:blank" is suggested in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
2c01ac4b75
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/www/private/download.html
  2. 2
      src/webui/www/private/upload.html

2
src/webui/www/private/download.html

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
</head>
<body>
<iframe id="download_frame" name="download_frame" class="invisible" src="javascript:false;"></iframe>
<iframe id="download_frame" name="download_frame" class="invisible" src="about:blank"></iframe>
<form action="api/v2/torrents/add" enctype="multipart/form-data" method="post" id="downloadForm" style="text-align: center;" target="download_frame" autocorrect="off" autocapitalize="none">
<div style="text-align: center;">
<br/>

2
src/webui/www/private/upload.html

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
</head>
<body>
<iframe id="upload_frame" name="upload_frame" class="invisible" src="javascript:false;"></iframe>
<iframe id="upload_frame" name="upload_frame" class="invisible" src="about:blank"></iframe>
<form action="api/v2/torrents/add" enctype="multipart/form-data" method="post" id="uploadForm" style="text-align: center;" target="upload_frame" autocorrect="off" autocapitalize="none">
<div style="margin-top: 25px; display: inline-block; border: 1px solid lightgrey; border-radius: 4px;">
<input type="file" id="fileselect" name="fileselect[]" multiple="multiple" />

Loading…
Cancel
Save