From 242b98f750d63a7167ccb2a887f0905425328914 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Mon, 19 May 2008 14:34:13 -0700
Subject: [PATCH] webish: censor URLs that start with /file and /named too

---
 src/allmydata/webish.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py
index 02edd6dd..6e7e9316 100644
--- a/src/allmydata/webish.py
+++ b/src/allmydata/webish.py
@@ -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",
-- 
2.45.2