mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 12:20:02 +00:00
webish: censor URLs that start with /file and /named too
This commit is contained in:
parent
fdb4149bad
commit
242b98f750
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user