[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [vidalia/master] Hex encode the password string to avoind random breaks



commit 91252576a424317e7719ebb7280d593a27013e79
Author: Tomas Touceda <chiiph@xxxxxxxxxxxxxx>
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);
   }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits