biell / alti-server

Altitude game server wrapper
The Unlicense
13 stars 3 forks source link

Remove all trailing slashes and don't add any #3

Closed fprintf closed 9 years ago

fprintf commented 9 years ago

Map names are being displayed as 'mapdir//name' this is because the regex is always adding a / but then when we construct the path to the map we use '..$MAPDIR/..' so we're already adding the slash so the regex should be changed to remove all trailing slashes entirely.