]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish: censor URLs that start with /file and /named too
authorBrian Warner <warner@allmydata.com>
Mon, 19 May 2008 21:34:13 +0000 (14:34 -0700)
committerBrian Warner <warner@allmydata.com>
Mon, 19 May 2008 21:34:13 +0000 (14:34 -0700)
src/allmydata/webish.py

index 02edd6dd0e89a5e13496efe2c80fc73fccbe4585..6e7e9316ef7e98a6a3267fba4a1573cf42bf4fc7 100644 (file)
@@ -99,6 +99,11 @@ class MyRequest(appserver.NevowRequest):
             queryargs = "?" + queryargs
         if path.startswith("/uri"):
             path = "/uri/[CENSORED].."
+        elif path.startswith("/file"):
+            path = "/file/[CENSORED].."
+        elif path.startswith("/named"):
+            path = "/named/[CENSORED].."
+
         uri = path + queryargs
 
         log.msg(format="web: %(clientip)s %(method)s %(uri)s %(code)s %(length)s",