mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdCustom
- Added placeholder for problematic parenthesis injection for report filters.
This commit is contained in:
parent
4bf3364bb7
commit
a892abf366
1 changed files with 9 additions and 0 deletions
|
@ -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 <std::string> filterArgs;
|
||||
Lexer::word_split (filterArgs, reportFilter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue