[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] branch tor-browser-102.3.0esr-12.0-2 updated: fixup! Bug 40933: Add tor-launcher functionality
This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch tor-browser-102.3.0esr-12.0-2
in repository tor-browser.
The following commit(s) were added to refs/heads/tor-browser-102.3.0esr-12.0-2 by this push:
new 8e55eb5a9baa fixup! Bug 40933: Add tor-launcher functionality
8e55eb5a9baa is described below
commit 8e55eb5a9baaa8f9a81ef6592159bea3decb940d
Author: Pier Angelo Vendrame <pierov@xxxxxxxxxxxxxx>
AuthorDate: Tue Oct 18 17:08:33 2022 +0200
fixup! Bug 40933: Add tor-launcher functionality
Bug 41376: Replace all / with \ on Windows in TorFile
---
toolkit/components/tor-launcher/TorLauncherUtil.jsm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/toolkit/components/tor-launcher/TorLauncherUtil.jsm b/toolkit/components/tor-launcher/TorLauncherUtil.jsm
index c2e066e5d29f..f606a4076bb7 100644
--- a/toolkit/components/tor-launcher/TorLauncherUtil.jsm
+++ b/toolkit/components/tor-launcher/TorLauncherUtil.jsm
@@ -196,12 +196,15 @@ class TorFile {
throw new Error("Unknown file type");
}
if (TorLauncherUtil.isWindows) {
- this.path = this.path.replace("/", "\\");
+ this.path = this.path.replaceAll("/", "\\");
}
this.isRelativePath = true;
}
pathToFile() {
+ if (TorLauncherUtil.isWindows) {
+ this.path = this.path.replaceAll("/", "\\");
+ }
// Turn 'path' into an absolute path when needed.
if (this.isRelativePath) {
const isUserData =
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits