Fix possible fraud cause

This commit is contained in:
Acrobot 2013-11-01 13:48:54 +01:00
parent 1c7c7d926e
commit 36c33612a0
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ public class PriceChecker implements Listener {
part = new String[]{line};
}
if (part[0].split(" ").length > 2) {
event.setOutcome(INVALID_PRICE);
return;
}
if (isPrice(part[0])) {
line = "B " + line;
}