Page 1 of 1

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

Posted: Sun Sep 04, 2016 1:55 am
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.

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

Posted: Sun Sep 04, 2016 8:35 am
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

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

Posted: Sun Sep 04, 2016 11:12 pm
by HMH
I already fixed this, it will work now :) .

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

Posted: Sun Sep 04, 2016 11:39 pm
by deen
Fixed how?

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

Posted: Mon Sep 05, 2016 1:21 am
by Skyrel
#rekt bt HMH

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

Posted: Mon Sep 05, 2016 1:26 am
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.

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

Posted: Mon Sep 05, 2016 9:16 pm
by McChicken
@Skyrel #rekt by HMH