From f6e2ffd0bb7cdd43dfd574d47663b35c8c5677ae Mon Sep 17 00:00:00 2001 From: "S.Listl" <s.listl@adito.de> Date: Tue, 25 Aug 2020 09:13:11 +0000 Subject: [PATCH] #1063558: accidental global variable fixed (cherry picked from commit df28f09e4179dc508269d5158e077638bcd6813f) --- process/Sql_lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js index 3039c1cf1c..5fbe817ea4 100644 --- a/process/Sql_lib/process.js +++ b/process/Sql_lib/process.js @@ -4048,7 +4048,7 @@ SqlUtils.replaceConditionTemplate = function(pCondition, pPlaceholder, pReplacem --------------------- */ //use replaceAll because it's faster and supports negative lookbehinds - replacements = {}; + var replacements = {}; //manually readd the replaced backslashes by using a group reference, because they a part of the match and therefore replaced by "replaceAll" //since the field COULD contain already a group reference (I think this is extremely uncommon; //probably that never happens but better stay save): escape that references within the fieldname -- GitLab