sanatise log in case multiple passwordsa have been passed (#8891)

This commit is contained in:
dahn 2024-04-29 09:37:36 +02:00 committed by GitHub
parent 6e823b2cd3
commit 54926c324f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -490,7 +490,7 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer
if(parameterMap.putIfAbsent(param.getName(), new String[]{param.getValue()}) != null) {
String message = String.format("Query parameter '%s' has multiple values [%s, %s]. Only the last value will be respected." +
"It is advised to pass only a single parameter", param.getName(), param.getValue(), parameterMap.get(param.getName()));
logger.warn(message);
logger.warn(StringUtils.cleanString(message));
}
}
}