[tor-commits] [onionoo/master] Partially revert the last commit.

karsten at torproject.org karsten at torproject.org
Mon Feb 27 18:37:47 UTC 2012


commit efe8f3a1f0f50d931244e6c6ce6beb54799869b6
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Mon Feb 27 19:36:16 2012 +0100

    Partially revert the last commit.
    
    Don't require the $ prefix in lookup URLs.
---
 src/org/torproject/onionoo/ResourceServlet.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/onionoo/ResourceServlet.java b/src/org/torproject/onionoo/ResourceServlet.java
index 7ccc39d..4da06a2 100644
--- a/src/org/torproject/onionoo/ResourceServlet.java
+++ b/src/org/torproject/onionoo/ResourceServlet.java
@@ -184,7 +184,7 @@ public class ResourceServlet extends HttpServlet {
   }
 
   private static Pattern fingerprintParameterPattern =
-      Pattern.compile("^\\$[0-9a-zA-Z]{1,40}$");
+      Pattern.compile("^[0-9a-zA-Z]{1,40}$");
   private Set<String> parseFingerprintParameters(String parameter) {
     if (!fingerprintParameterPattern.matcher(parameter).matches()) {
       return null;



More information about the tor-commits mailing list