Protect STOMP passcode from showing up in logs

Issue: SRP-10868
This commit is contained in:
Rossen Stoyanchev
2013-08-28 23:51:08 -04:00
parent 1472e9795f
commit 80812d30d4
4 changed files with 58 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ public final class TextMessage extends WebSocketMessage<String> {
@Override
protected String toStringPayload() {
return (getPayloadSize() > 80) ? getPayload().substring(0, 80) + "..." : getPayload();
return (getPayloadSize() > 10) ? getPayload().substring(0, 10) + ".." : getPayload();
}
}