param length check

This commit is contained in:
zzz
2020-05-14 12:57:24 +00:00
parent 31a57b1a60
commit fad9d0e3da
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
<b><%=intl._t("Select xpi2p or su3 file")%>:</b>
<%
String file = request.getParameter("pluginFile");
if (file != null) {
if (file != null && file.length() > 0) {
%>
<input type="text" size="60" name="pluginFile" value="<%=file%>">
<%

View File

@@ -91,7 +91,7 @@
<b><%=intl._t("Select zip or su3 file")%>:</b>
<%
String file = request.getParameter("file");
if (file != null) {
if (file != null && file.length() > 0) {
%>
<input type="text" size="60" name="file" value="<%=file%>">
<%