Escape double-quotes in JS context.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23180
This commit is contained in:
Jeff Young
2026-02-20 22:07:06 +00:00
parent 717bec1e39
commit c5f8737d20
+1 -1
View File
@@ -239,7 +239,7 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
}
else if( aContext == CTX_JS_STR )
{
if( c >= 0x7F || c == '\'' || c == '\\' || c == '(' || c == ')' )
if( c >= 0x7F || c == '\'' || c == '"' || c == '\\' || c == '(' || c == ')' )
{
unsigned int code = c;
char buffer[16];