/mapinfo doesn't work when the current map name contains a single quote character.
- Fifi
- Posts: 298
- Joined: Fri Jan 23, 2015 11:57 pm
- Location: Cracow, Poland
- Player profile: http://ddnet.tw/players/Fifi/
/mapinfo doesn't work when the current map name contains a single quote character.
/mapinfo doesn't work when the current map name contains a single quote character (this one -> ' ).
The bug can be reproduced by voting the map "Good Ol' Days 2" and trying to use "/mapinfo". It works on the same server with other maps.
Also: loading the mentioned map, after changing to a different one, breaks "/mapinfo" again - so it's not like it was a single case.
The bug can be reproduced by voting the map "Good Ol' Days 2" and trying to use "/mapinfo". It works on the same server with other maps.
Also: loading the mentioned map, after changing to a different one, breaks "/mapinfo" again - so it's not like it was a single case.
- deen
- Posts: 3575
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: /mapinfo doesn't work when the current map name contains a single quote character.
My guess would be that the
'
character is special and you need to escape it, for example with /mapinfo "Good Ol' Days 1"
or /mapinfo Good Ol\' Days 1
Re: /mapinfo doesn't work when the current map name contains a single quote character.
I already fixed this, it will work now .
Re: /mapinfo doesn't work when the current map name contains a single quote character.
During rework of the sqlcode I forgot to run ClearString before calling FuzzyString which is now fixed: https://github.com/ddnet/ddnet/commit/1 ... f3977bcd6a
Edit:
@Skyrel: Please resist from posting useless comments.
Edit:
@Skyrel: Please resist from posting useless comments.
Who is online
Users browsing this forum: No registered users and 1 guest