Skip to content

Commit 2fa8fb0

Browse files
committed
Escape apostrophe properly
Fix nwjs#1206
1 parent c350b0c commit 2fa8fb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderer/shell_content_renderer_client.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ void ShellContentRendererClient::InstallNodeSymbols(
302302
#if defined(OS_WIN)
303303
ReplaceChars(root_path, "\\", "\\\\", &root_path);
304304
#endif
305+
ReplaceChars(root_path, "'", "\\'", &root_path);
305306
v8::Local<v8::Script> script = v8::Script::New(v8::String::New((
306307
// Make node's relative modules work
307308
"if (!process.mainModule.filename) {"

0 commit comments

Comments
 (0)