Commit a56b5e7c authored by Olivier Teulière's avatar Olivier Teulière

Backport of [15353]

parent ed897f6f
......@@ -168,6 +168,14 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
// Now remove any whitespace at the beginning of the right part,
// and go on checking for further actions in it...
rightPart = rightPart.substr( pos, rightPart.size() );
if ( rightPart.find_first_not_of( " \t;" ) == string::npos )
{
// The right part is completely buggy, it's time to leave the
// loop...
rightPart = "";
break;
}
rightPart =
rightPart.substr( rightPart.find_first_not_of( " \t;" ),
rightPart.size() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment