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

[tor-commits] [vidalia/master] Escape the password, just in case



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



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