[tor-commits] [onionoo/master] Support V2Dir (and V3Dir) flags in flag parameter.

karsten at torproject.org karsten at torproject.org
Thu Apr 25 12:00:22 UTC 2013


commit 02d39ecafc4b7e249b3bed33a51da76b334ab3f4
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Thu Apr 25 13:58:01 2013 +0200

    Support V2Dir (and V3Dir) flags in flag parameter.
    
    Generally, allow digits in flag names.
---
 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 8c0b625..f36a377 100644
--- a/src/org/torproject/onionoo/ResourceServlet.java
+++ b/src/org/torproject/onionoo/ResourceServlet.java
@@ -537,7 +537,7 @@ public class ResourceServlet extends HttpServlet {
   }
 
   private static Pattern flagPattern =
-      Pattern.compile("^[a-zA-Z]{1,20}$");
+      Pattern.compile("^[a-zA-Z0-9]{1,20}$");
   private String parseFlagParameter(String parameter) {
     if (!flagPattern.matcher(parameter).matches()) {
       return null;



More information about the tor-commits mailing list