[tor-commits] [onionoo/master] Fix copy-paste bug leading to missing as_name fields.
karsten at torproject.org
karsten at torproject.org
Fri Mar 9 10:57:09 UTC 2012
commit 85d4085cea2c9629a1ef13abca2fbde8d18ec647
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Fri Mar 9 11:56:24 2012 +0100
Fix copy-paste bug leading to missing as_name fields.
---
src/org/torproject/onionoo/DetailDataWriter.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/onionoo/DetailDataWriter.java b/src/org/torproject/onionoo/DetailDataWriter.java
index 35b6484..a65ef36 100644
--- a/src/org/torproject/onionoo/DetailDataWriter.java
+++ b/src/org/torproject/onionoo/DetailDataWriter.java
@@ -358,7 +358,7 @@ public class DetailDataWriter {
sb.append(",\n\"as_number\":\""
+ StringEscapeUtils.escapeJavaScript(aSNumber) + "\"");
}
- if (cityName != null) {
+ if (aSName != null) {
sb.append(",\n\"as_name\":\""
+ StringEscapeUtils.escapeJavaScript(aSName) + "\"");
}
More information about the tor-commits
mailing list