mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
Merge 2916fa45af into 7a7c535158
This commit is contained in:
commit
28706b5b8d
10 changed files with 937 additions and 2 deletions
|
|
@ -1115,7 +1115,9 @@ Response::ResponseCode AbstractServerSocketInterface::cmdDeckUpload(const Comman
|
|||
const QString bannerCardProvider = deck.getBannerCard().providerId.left(32);
|
||||
const QString tagsJson = serializeDeckTags(deck.getTags());
|
||||
const QString colorIdentity = sanitizeColorIdentity(nameFromStdString(cmd.color_identity()));
|
||||
const QString deckHash = deck.getDeckHash();
|
||||
// Hash the exact bytes the client sent: both peers must compare the same
|
||||
// string, not each side's re-serialisation of it.
|
||||
const QString deckHash = DeckList::contentHash(deckStr);
|
||||
QString guid = cmd.has_guid() ? nameFromStdString(cmd.guid()).left(36) : QString();
|
||||
if (QUuid::fromString(guid).isNull()) {
|
||||
guid = QUuid::createUuid().toString(QUuid::WithoutBraces);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue