[tor-commits] [oonib/master] Loosen regexp so that the descriptors are actually fetchable

art at torproject.org art at torproject.org
Wed Sep 11 09:13:52 UTC 2013


commit 7e2a526d88c20f038a5fabbe43062345b13448b9
Author: Arturo Filastò <art at fuffa.org>
Date:   Fri Aug 16 22:11:07 2013 +0200

    Loosen regexp so that the descriptors are actually fetchable
---
 oonib/inputs/api.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oonib/inputs/api.py b/oonib/inputs/api.py
index d74c23c..bfcf076 100644
--- a/oonib/inputs/api.py
+++ b/oonib/inputs/api.py
@@ -4,7 +4,7 @@ from oonib import config
 
 inputsAPI = [
     (r"/inputs", handlers.InputsListHandler),
-    (r"/inputs/([a-z0-9]{40})", handlers.InputsDescHandler),
-    (r"/inputs/([a-z0-9]{40})/file$", web.StaticFileHandler, {"path":
+    (r"/inputs/([a-f0-9]{64})", handlers.InputsDescHandler),
+    (r"/inputs/([a-f0-9]{64})/file$", web.StaticFileHandler, {"path":
         config.main.inputs_dir}),
 ]





More information about the tor-commits mailing list