From a892abf3666eb9de2614d5f3b0047a39aed30ba5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Jun 2014 12:42:07 -0400 Subject: [PATCH] CmdCustom - Added placeholder for problematic parenthesis injection for report filters. --- src/commands/CmdCustom.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index 078dcacbe..a2ec40064 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -85,6 +85,15 @@ int CmdCustom::execute (std::string& output) split (sortOrder, reportSort, ','); validateSortColumns (sortOrder); +/* + TODO Wow, this addition causes memory errors. + + // Surround the command-line filter with parentheses, to protect it from + // the 'and' placed between the report filter and the command line filter. + context.parser.captureFirst ("("); + context.parser.captureLast (")"); +*/ + // Prepend the argument list with those from the report filter. std::vector filterArgs; Lexer::word_split (filterArgs, reportFilter);