Escape logged strings returned from expression functions
This commit is contained in:
parent
dfda450b41
commit
735d3ca5f9
|
@ -123,8 +123,13 @@ static String printValue(FormatValueType value, StringValueType type)
|
||||||
if(!parser.Calculate(evalue, valuesignedcalc(), false))
|
if(!parser.Calculate(evalue, valuesignedcalc(), false))
|
||||||
return "???";
|
return "???";
|
||||||
|
|
||||||
if(type == StringValueType::Default && evalue.isString)
|
if(evalue.isString)
|
||||||
return evalue.data;
|
{
|
||||||
|
if(type == StringValueType::Default)
|
||||||
|
return StringUtils::Escape(evalue.data);
|
||||||
|
else if(type == StringValueType::String)
|
||||||
|
return evalue.data; // allow raw string output
|
||||||
|
}
|
||||||
|
|
||||||
duint valuint = 0;
|
duint valuint = 0;
|
||||||
if(evalue.isString || !evalue.DoEvaluate(valuint))
|
if(evalue.isString || !evalue.DoEvaluate(valuint))
|
||||||
|
|
Loading…
Reference in New Issue