Skip to content

Commit

Permalink
LayerManagerControl: Prevent conversion of filenames into lowercase
Browse files Browse the repository at this point in the history
LayerManagerControl auto-convert all text expressions to lowercase which includes
the dump filenames that the user provides.
LayerManagerControl should use the filename as provided and should not modify it.
Added necessary changes in LayerMangerControl source code so that the text is not
converted to lowercase if the expression is a filename.

Signed-off-by: Rajendraprasad K J <KarammelJayakumar.Rajendraprasad@in.bosch.com>
  • Loading branch information
rajendraprasadkj committed Apr 8, 2019
1 parent 736fb65 commit 56964fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ ExpressionList Expression::getNextExpressionClosure(string text)
{
Expression* expr = *iter;

if((expr->mName).compare("<file>") &&
(expr->mName).compare("<filename>"))
{
transform(text.begin(), text.end(), text.begin(), ::tolower);
}

if (expr->isVar())
{
nextClosure.push_back(expr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ CommandResult ExpressionInterpreter::interpretCommand(string userInput)
while (result == CommandSuccess && !ss.eof())
{
ss >> text;
transform(text.begin(), text.end(), text.begin(), ::tolower);

ExpressionList::const_iterator iter = currentState.begin();
ExpressionList::const_iterator end = currentState.end();
Expand Down

0 comments on commit 56964fe

Please sign in to comment.