projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb4149
)
webish: censor URLs that start with /file and /named too
author
Brian Warner
<warner@allmydata.com>
Mon, 19 May 2008 21:34:13 +0000
(14:34 -0700)
committer
Brian Warner
<warner@allmydata.com>
Mon, 19 May 2008 21:34:13 +0000
(14:34 -0700)
src/allmydata/webish.py
patch
|
blob
|
history
diff --git
a/src/allmydata/webish.py
b/src/allmydata/webish.py
index 02edd6dd0e89a5e13496efe2c80fc73fccbe4585..6e7e9316ef7e98a6a3267fba4a1573cf42bf4fc7 100644
(file)
--- 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",