From 2a13ce80d00584e5e779c6d98c5b3b76f50eab35 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Tue, 16 Oct 2012 23:55:06 +0000 Subject: [PATCH] Assigning the blueprintId to card only after it is sanitized. Fixes problem with fake card numbers, like "Hunters" Forth the Three Hunters! with different culture versions, when in foil version. --- gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-011/jCards.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-011/jCards.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-011/jCards.js index 002ef4243..0d55f4bd2 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-011/jCards.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-011/jCards.js @@ -117,8 +117,6 @@ var Card = Class.extend({ errata:null, init:function (blueprintId, zone, cardId, owner, siteNumber) { - this.blueprintId = blueprintId; - var len = blueprintId.length; this.foil = blueprintId.substring(len - 1, len) == "*"; if (this.foil) @@ -128,6 +126,8 @@ var Card = Class.extend({ if (this.tengwar) blueprintId = blueprintId.substring(0, len - 1); + this.blueprintId = blueprintId; + this.zone = zone; this.cardId = cardId; this.owner = owner;