Browse Source

Linux: Quote Bash command string in Process::openDocument() to prevent ampersands being treated as a control operator

tags/2021-05-28
ed 5 years ago
parent
commit
fe9493867e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_linux_Files.cpp

+ 1
- 1
modules/juce_core/native/juce_linux_Files.cpp View File

@@ -203,7 +203,7 @@ bool Process::openDocument (const String& fileName, const String& parameters)
for (auto browserName : { "xdg-open", "/etc/alternatives/x-www-browser", "firefox", "mozilla",
"google-chrome", "chromium-browser", "opera", "konqueror" })
{
cmdLines.add (String (browserName) + " " + cmdString.trim());
cmdLines.add (String (browserName) + " " + cmdString.trim().quoted());
}
cmdString = cmdLines.joinIntoString (" || ");


Loading…
Cancel
Save