Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/104'
Browse files Browse the repository at this point in the history
* upstream/pull/104
  LayerManagerControl: Prevent conversion of filenames into lowercase

  Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
  Tested-by: Emre Ucan <eucan@de.adit-jv.com>
  • Loading branch information
eucan committed Apr 9, 2019
2 parents 736fb65 + 56964fe commit 10584b4
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 10584b4

Please sign in to comment.