X-Git-Url: https://juplo.de/gitweb/?p=fix-swf;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Ffixswf%2FFixSwfServlet.java;h=9099ada3121d87647cc5a930068f4b140f4c4ea3;hp=42f56a30e5d39d32a3444d9b76b70255a6e0ea74;hb=fd1e8e48f484f190a12f7ed21169656435c52db2;hpb=f79cfd48786fb45ad5804d9a51ce5139459a5ca3 diff --git a/src/main/java/de/juplo/fixswf/FixSwfServlet.java b/src/main/java/de/juplo/fixswf/FixSwfServlet.java index 42f56a3..9099ada 100644 --- a/src/main/java/de/juplo/fixswf/FixSwfServlet.java +++ b/src/main/java/de/juplo/fixswf/FixSwfServlet.java @@ -31,10 +31,13 @@ public class FixSwfServlet extends HttpServlet @Override - public void init(ServletConfig config) throws ServletException { + public void init(ServletConfig config) throws ServletException + { corrections = new HashMap(); - 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); } @@ -93,7 +96,7 @@ public class FixSwfServlet extends HttpServlet out.println("

" + StringEscapeUtils.escapeHtml((String)request.getAttribute(MESSAGE_ATTRIBUTE)) + "

"); } out.println("

Choose SWF-File to check/fix

"); - out.println("

If the file has to be fixed, the fixed version will be presented to you as a download.

"); + out.println("

If the file has to be fixed, the fixed version will be presented to you as a download immediately.

"); out.println("
"); out.println(""); out.println("");