diff options
author | fiaxh <github@lightrise.org> | 2016-01-05 20:07:29 +0100 |
---|---|---|
committer | fiaxh <github@lightrise.org> | 2016-01-05 20:07:29 +0100 |
commit | 62d0eebe5cfa07bf17dff7f0476428ae649d53ff (patch) | |
tree | 3532dfd7e2b86de9ebc5a565feea837b35c20952 /src | |
parent | abdb8bfb65cda02adcb6c1bcbdcd00159fc0c96a (diff) |
Correct uuid check according to RFC 4122
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Message.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index 4a49d1b3..c5831e7e 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -363,7 +363,7 @@ public class Message extends AbstractEntity { && this.counterpart.equals(message.getCounterpart()) && (body.equals(otherBody) ||(message.getEncryption() == Message.ENCRYPTION_PGP - && message.getRemoteMsgId().matches("[0-9a-f]{8}-[0-9a-f]{4}-4[0-9]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"))) ; + && message.getRemoteMsgId().matches("[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"))) ; } else { return this.remoteMsgId == null && this.counterpart.equals(message.getCounterpart()) |