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

[tor-commits] [vidalia/alpha] Fix bridge line parsing for requests to bridges.tpo



commit 2064065537826047967bfabe7ad1643cf361395c
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
Date:   Sat Mar 17 14:20:46 2012 -0300

    Fix bridge line parsing for requests to bridges.tpo
---
 changes/bug5370                    |    2 ++
 src/vidalia/config/NetworkPage.cpp |    5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/changes/bug5370 b/changes/bug5370
new file mode 100644
index 0000000..9e5f062
--- /dev/null
+++ b/changes/bug5370
@@ -0,0 +1,2 @@
+  o Fix the bridge line parsing for requests to
+    bridges.torproject.org. Fixes bug 5730.
\ No newline at end of file
diff --git a/src/vidalia/config/NetworkPage.cpp b/src/vidalia/config/NetworkPage.cpp
index 6d3708d..a520996 100644
--- a/src/vidalia/config/NetworkPage.cpp
+++ b/src/vidalia/config/NetworkPage.cpp
@@ -388,12 +388,11 @@ void
 NetworkPage::bridgeRequestFinished(const QStringList &bridges)
 {
   bool foundNewBridges = false;
-  QString normalized;
 
   foreach (QString bridge, bridges) {
-    QString address = normalized.split(" ").at(0);
+    QString address = bridge.trimmed().split(" ").at(1);
     if (ui.listBridges->findItems(address, Qt::MatchContains).isEmpty()) {
-      ui.listBridges->addItem(normalized);
+      ui.listBridges->addItem(address);
       foundNewBridges = true;
     }
   }

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