[tor-commits] [metrics-lib/master] Skip all crypto parts when counting keywords.
karsten at torproject.org
karsten at torproject.org
Thu Dec 15 14:37:59 UTC 2011
commit da64a0275745cf63694886011484f6bde2a6866e
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu Dec 15 15:37:12 2011 +0100
Skip all crypto parts when counting keywords.
---
.../descriptor/impl/NetworkStatusImpl.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/org/torproject/descriptor/impl/NetworkStatusImpl.java b/src/org/torproject/descriptor/impl/NetworkStatusImpl.java
index f7488c6..6ca546e 100644
--- a/src/org/torproject/descriptor/impl/NetworkStatusImpl.java
+++ b/src/org/torproject/descriptor/impl/NetworkStatusImpl.java
@@ -272,9 +272,9 @@ public abstract class NetworkStatusImpl {
String line;
boolean skipCrypto = false;
while ((line = br.readLine()) != null) {
- if (line.startsWith("-----BEGIN SIGNATURE-----")) {
+ if (line.startsWith("-----BEGIN")) {
skipCrypto = true;
- } else if (line.equals("-----END SIGNATURE-----")) {
+ } else if (line.equals("-----END")) {
skipCrypto = false;
} else if (!skipCrypto) {
String keyword = line.split(" ", -1)[0];
More information about the tor-commits
mailing list