mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-22 14:24:48 +00:00
Add guard around debug logging involving string concatenation
This commit is contained in:
parent
0af74ce134
commit
0e6d47b082
@ -46,7 +46,9 @@ public final class RequestedUrlRedirectInvalidSessionStrategy implements Invalid
|
||||
public void onInvalidSessionDetected(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
||||
String destinationUrl = ServletUriComponentsBuilder.fromRequest(request).host(null).scheme(null).port(null)
|
||||
.toUriString();
|
||||
this.logger.debug("Starting new session (if required) and redirecting to '" + destinationUrl + "'");
|
||||
if (this.logger.isDebugEnabled()) {
|
||||
this.logger.debug("Starting new session (if required) and redirecting to '" + destinationUrl + "'");
|
||||
}
|
||||
if (this.createNewSession) {
|
||||
request.getSession();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user