Obscure password information when we log URLs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@70 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -80,7 +80,11 @@ public class BrowserUtil
|
||||
cmd = new String[] { genagent, url.toString() };
|
||||
}
|
||||
|
||||
log.info("Browsing URL [cmd=" + StringUtil.join(cmd, " ") + "].");
|
||||
// obscure any password information
|
||||
String logcmd = StringUtil.join(cmd, " ");
|
||||
logcmd = logcmd.replaceAll("password=[^&]*", "password=XXX");
|
||||
log.info("Browsing URL [cmd=" + logcmd + "].");
|
||||
|
||||
try {
|
||||
Process process = Runtime.getRuntime().exec(cmd);
|
||||
BrowserTracker tracker = new BrowserTracker(process, url, listener);
|
||||
|
||||
Reference in New Issue
Block a user