ogamespec / ogame-opensource

This is revived OGame v 0.84 with old design.
Creative Commons Zero v1.0 Universal
81 stars 38 forks source link

Players with a space in their name are incorrectly parsed by the battle engine #119

Closed ogamespec closed 3 months ago

ogamespec commented 3 months ago

https://github.com/ogamespec/ogame-opensource/blob/94a0c54acf762a2aac99f1fbc194a64900fa1ccc/game/battle_engine.php#L635

We need to come up with a safer explode method, taking the player's name between { } as a single substring (including spaces).