From c8215028331eec1069200bd851a30a03d6da80b6 Mon Sep 17 00:00:00 2001 From: Kornelius Rohrschneider Date: Wed, 24 May 2023 00:32:20 +0200 Subject: [PATCH] Changed GetURL2 default sendVarsMethod value to 0 LoadVariables, LoadMovie, LoadVariablesNum and LoadMovieNum all previously used 1 as the default sendVarsMethod value for their GetURL2 call. However, the default value (if no "GET" or "POST" is given) should be 0. This has been fixed. --- .../flash/action/parser/script/ActionScript2Parser.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java index ae6c87254..ad1b18498 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java @@ -504,7 +504,7 @@ public class ActionScript2Parser { traitsStatic.add(false); if (isSetter) { - //add return getter automatically + //add return getter automatically GraphTargetItem thisVar = new VariableActionItem("this", null, false); ft.addVariable((VariableActionItem) thisVar); GraphTargetItem callM = new CallMethodActionItem(null, null, thisVar, pushConst("__get__" + fname), new ArrayList<>()); @@ -723,7 +723,7 @@ public class ActionScript2Parser { s = lex(); expected(s, lexer.yyline(), SymbolType.PARENT_CLOSE, SymbolType.COMMA); - int lvmethod = 1; + int lvmethod = 0; if (s.type == SymbolType.COMMA) { s = lex(); expected(s, lexer.yyline(), SymbolType.STRING); @@ -2354,7 +2354,7 @@ public class ActionScript2Parser { //can change constant indices as ActionPush contains always 1 byte per constant canChangeInPlace = true; } else { - //variable number bytes per ActionPush constant, + //variable number bytes per ActionPush constant, //must generate again to make relative offsets in jumps work canChangeInPlace = false; } @@ -2408,7 +2408,7 @@ public class ActionScript2Parser { List tree = treeFromString(s, newConstantPool); return actionsFromTree(tree, newConstantPool, false /*do not order again*/, charset); } catch (NeedsGenerateAgainException ex) { - //should not happen as doOrder parameter is set to false + //should not happen as doOrder parameter is set to false return new ArrayList<>(); } }