Fix recursive string parsing, correct handling of escapes

This commit is contained in:
Maxime Coste 2014-06-26 18:57:51 +01:00
parent 5b27b956ad
commit 047488a8da

View File

@ -292,6 +292,7 @@ String eval(const String& str, Context& context,
if (c != '%' and c != '\\') if (c != '%' and c != '\\')
res += '\\'; res += '\\';
res += c; res += c;
++pos;
} }
else if (str[pos] == '%') else if (str[pos] == '%')
{ {