always escape special chars and bytes
This commit is contained in:
@ -1211,8 +1211,7 @@ compileString(StreamBuffer& buffer, const char*& source,
|
|||||||
c=*source;
|
c=*source;
|
||||||
}
|
}
|
||||||
source+=n;
|
source+=n;
|
||||||
if (formatType != NoFormat &&
|
if (formatType != NoFormat)
|
||||||
(c < last_function_code || c == esc || c == '%'))
|
|
||||||
{
|
{
|
||||||
buffer.append(esc);
|
buffer.append(esc);
|
||||||
}
|
}
|
||||||
@ -1284,8 +1283,7 @@ compileString(StreamBuffer& buffer, const char*& source,
|
|||||||
"Value %s does not fit in byte\n", source);
|
"Value %s does not fit in byte\n", source);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (formatType != NoFormat &&
|
if (formatType != NoFormat)
|
||||||
(c < last_function_code || c == esc || c == '%'))
|
|
||||||
{
|
{
|
||||||
buffer.append(esc);
|
buffer.append(esc);
|
||||||
}
|
}
|
||||||
@ -1349,8 +1347,7 @@ compileString(StreamBuffer& buffer, const char*& source,
|
|||||||
source);
|
source);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (formatType != NoFormat &&
|
if (formatType != NoFormat)
|
||||||
(c < last_function_code || c == esc))
|
|
||||||
{
|
{
|
||||||
buffer.append(esc);
|
buffer.append(esc);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user