From 669574b484989dfff9af5745a17155c9132db73b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 1 Apr 2024 16:22:05 -0400 Subject: [PATCH] subprocess(): Use isAbsolute instead of checking for slash (#3911) --- chrome/content/zotero/xpcom/utilities_internal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities_internal.js b/chrome/content/zotero/xpcom/utilities_internal.js index ab32f87b3a..5833c771eb 100644 --- a/chrome/content/zotero/xpcom/utilities_internal.js +++ b/chrome/content/zotero/xpcom/utilities_internal.js @@ -615,7 +615,7 @@ Zotero.Utilities.Internal = { */ subprocess: async function (command, args = []) { // eslint-disable-next-line no-undef - command = command.includes('/') ? command : await Subprocess.pathSearch(command); + command = PathUtils.isAbsolute(command) ? command : await Subprocess.pathSearch(command); Zotero.debug("Running " + command + " " + args.map(arg => "'" + arg + "'").join(" "));