[tor-commits] [vidalia/master] Hex encode the password string to avoind random breaks
chiiph at torproject.org
chiiph at torproject.org
Sat Aug 13 03:11:29 UTC 2011
commit 91252576a424317e7719ebb7280d593a27013e79
Author: Tomas Touceda <chiiph at torproject.org>
Date: Wed Aug 10 14:40:08 2011 -0300
Hex encode the password string to avoind random breaks
---
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 5120fde..b5a8434 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(string_escape(settings.getControlPassword()));
+ env << QString("TOR_CONTROL_PASSWD=%1").arg(string_escape(QString(settings.getControlPassword().toAscii().toHex())));
env << QString("TOR_CONTROL_PORT=%1").arg(_autoControlPort);
}
More information about the tor-commits
mailing list