[tor-commits] [vidalia/master] Escape the password, just in case
chiiph at torproject.org
chiiph at torproject.org
Sat Aug 13 03:11:29 UTC 2011
commit 4cca4038cddb421ab05554dd016629dc1c066dcc
Author: Tomas Touceda <chiiph at torproject.org>
Date: Wed Aug 10 13:22:25 2011 -0300
Escape the password, just in case
---
src/vidalia/MainWindow.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index 4e697f6..5120fde 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -2040,7 +2040,7 @@ MainWindow::updateBrowserEnv() {
}
if(settings.getAuthenticationMethod() == TorSettings::PasswordAuth) {
- env << QString("TOR_CONTROL_PASSWD=%1").arg(settings.getControlPassword());
+ env << QString("TOR_CONTROL_PASSWD=%1").arg(string_escape(settings.getControlPassword()));
env << QString("TOR_CONTROL_PORT=%1").arg(_autoControlPort);
}
More information about the tor-commits
mailing list