From: Brian Warner Date: Mon, 19 May 2008 21:34:13 +0000 (-0700) Subject: webish: censor URLs that start with /file and /named too X-Git-Tag: allmydata-tahoe-1.1.0~114 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/FTP-and-SFTP.rst?a=commitdiff_plain;h=242b98f750d63a7167ccb2a887f0905425328914;p=tahoe-lafs%2Ftahoe-lafs.git webish: censor URLs that start with /file and /named too --- 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",