From c5f8737d203c6e081b47e273d6431dafd8c058d7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 20 Feb 2026 22:07:06 +0000 Subject: [PATCH] Escape double-quotes in JS context. Fixes https://gitlab.com/kicad/code/kicad/-/issues/23180 --- common/string_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/string_utils.cpp b/common/string_utils.cpp index d39ca511b3..127a32d138 100644 --- a/common/string_utils.cpp +++ b/common/string_utils.cpp @@ -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];