projects
/
fix-swf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f79cfd4
)
Mappings für die Flashplayer-Versionen korrigiert
author
Kai Moritz
<kai@coolibri.de>
Mon, 26 Nov 2012 20:49:01 +0000
(21:49 +0100)
committer
Kai Moritz
<kai@coolibri.de>
Mon, 26 Nov 2012 20:49:01 +0000
(21:49 +0100)
src/main/java/de/juplo/fixswf/FixSwfServlet.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/fixswf/FixSwfServlet.java
b/src/main/java/de/juplo/fixswf/FixSwfServlet.java
index
42f56a3
..
ada8eb0
100644
(file)
--- 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
@Override
- public void init(ServletConfig config) throws ServletException {
+ public void init(ServletConfig config) throws ServletException
+ {
corrections = new HashMap<Byte,Byte>();
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);
}
pattern = Pattern.compile("([^/\\\\:<>?\"]+?)(?:\\.swf)?$", Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
}