webish: censor URLs that start with /file and /named too

This commit is contained in:
Brian Warner 2008-05-19 14:34:13 -07:00
parent fdb4149bad
commit 242b98f750

View 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",