/mapinfo doesn't work when the current map name contains a single quote character.

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
Post Reply
User avatar
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.

Post by Fifi »

/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.
Image
User avatar
deen
TECHNICAL Team
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.

Post by deen »

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
HMH
Posts: 145
Joined: Mon May 05, 2014 8:41 pm
Player profile: http://ddnet.tw/players/HMH/

Re: /mapinfo doesn't work when the current map name contains a single quote character.

Post by HMH »

I already fixed this, it will work now :) .
User avatar
deen
TECHNICAL Team
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.

Post by deen »

Fixed how?
User avatar
Skyrel
Posts: 398
Joined: Tue Oct 20, 2015 8:07 pm
Location: Italy
Player profile: http://ddnet.tw/players/Skyrel/
Mapper profile: https://ddnet.tw/mappers/Skyrel/
Clan: DummyFly
Website: http://steamcommunity.com/profiles/76561198158063738

Re: /mapinfo doesn't work when the current map name contains a single quote character.

Post by Skyrel »

#rekt bt HMH
Image
HMH
Posts: 145
Joined: Mon May 05, 2014 8:41 pm
Player profile: http://ddnet.tw/players/HMH/

Re: /mapinfo doesn't work when the current map name contains a single quote character.

Post by HMH »

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.
User avatar
McChicken
Posts: 9
Joined: Sun Sep 04, 2016 3:51 am

Re: /mapinfo doesn't work when the current map name contains a single quote character.

Post by McChicken »

@Skyrel #rekt by HMH
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest