mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Fix possible fraud cause
This commit is contained in:
parent
1c7c7d926e
commit
36c33612a0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user