[tor-commits] [vidalia/master] Fix bridge line parsing for requests to bridges.tpo
chiiph at torproject.org
chiiph at torproject.org
Sat Mar 17 19:56:03 UTC 2012
commit a37ff774659e0dcfa2ccb58409ad48154a00001f
Author: Tomás Touceda <chiiph at torproject.org>
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 8bfabb3..0302817 100644
--- a/src/vidalia/config/NetworkPage.cpp
+++ b/src/vidalia/config/NetworkPage.cpp
@@ -383,12 +383,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;
}
}
More information about the tor-commits
mailing list