@Override
- public void init(ServletConfig config) throws ServletException {
+ public void init(ServletConfig config) throws ServletException
+ {
corrections = new HashMap<Byte,Byte>();
- corrections.put((byte)12, (byte)10);
- corrections.put((byte)14, (byte)11);
+ corrections.put((byte)0x0C, (byte)10); // << Flash Player 10.3
+ corrections.put((byte)0x0E, (byte)11); // << Flash Player 11.1
+ corrections.put((byte)0x0F, (byte)11); // << Flash Player 11.2
+
pattern = Pattern.compile("([^/\\\\:<>?\"]+?)(?:\\.swf)?$", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
}
out.println("<p>" + StringEscapeUtils.escapeHtml((String)request.getAttribute(MESSAGE_ATTRIBUTE)) + "</p>");
}
out.println("<h1>Choose SWF-File to check/fix</h1>");
- out.println("<p>If the file has to be fixed, the fixed version will be presented to you as a download.</p>");
+ out.println("<p>If the file has to be fixed, the fixed version will be presented to you as a download immediately.</p>");
out.println("<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">");
out.println("<input type=\"file\" name=\"swf\" />");
out.println("<input type=\"submit\" name=\"submit\" value=\"Start Upload\" />");