diff --git a/src/Game/Service/GameResponseService.php b/src/Game/Service/GameResponseService.php index 337b772..5c80806 100644 --- a/src/Game/Service/GameResponseService.php +++ b/src/Game/Service/GameResponseService.php @@ -784,7 +784,9 @@ class GameResponseService private function generateSpecialCode(int $firstDigit, int $min, int $max): string { - $code = $this->generateRandomString($min, $max); + // No spaces: this code gets typed back in as a single /decode argument, + // which is split on spaces, so a space here would silently truncate it. + $code = str_replace(' ', '', $this->generateRandomString($min, $max)); // Ensure the first numeric digit is the specified $firstDigit $found = false;