mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
[HER-1804] H3: avoid echoing admin credentials to (possibly world-readable) _out log
* Heritrix.java
replace echo of exact login/pw with note about whether it came from cmd-line or @file
This commit is contained in:
1 parent
5f76c7ef56
commit
be954bc9b9
1 file changed
+3
-3
@@ -240,8 +240,8 @@ public class Heritrix {
|
||||
String keyPassword;
|
||||
File properties = getDefaultPropertiesFile();
|
||||
|
||||
String aOption = cl.getOptionValue('a');
|
||||
if (cl.hasOption('a')) {
|
||||
String aOption = cl.getOptionValue('a');
|
||||
String usernameColonPassword = aOption;
|
||||
try {
|
||||
if(aOption.startsWith("@")) {
|
||||
@@ -345,8 +345,8 @@ public class Heritrix {
|
||||
guard.setNext(new EngineApplication(engine));
|
||||
component.start();
|
||||
startupOut.println("engine listening at port "+port);
|
||||
startupOut.println("operator login is '"+authLogin
|
||||
+"' password '"+authPassword+"'");
|
||||
startupOut.println("operator login set per " +
|
||||
((aOption.startsWith("@")) ? "file "+aOption : "command-line"));
|
||||
if(authPassword.length()<8 || authPassword.matches("[a-zA-Z]{0,10}")
|
||||
||authPassword.matches("\\d{0,10}")) {
|
||||
startupOut.println(
|
||||
|
||||
Reference in new issue
Block a user