Page 1 of 1

[FIXED] Quotes in CTB name corrupts click action.

Posted: 12 Aug 2013 20:29
by TheQwerty
I'm going to guess this is been the case since CTBs were introduced in v8.30.0007, but my collection of archives from that time skips from 8.30.0000 to 8.30.0012.

Pretty simple to recreate:
Put some double-quotes in a CTB's name. (i.e. A "B" C)
Click OK.
Go back to the edit dialog and the 'On Click' script will be corrupted. (It will now start with B" C||0|0" , which isn't a valid script.)


Quotes should either be escaped, removed (like '|'), or rejected with errors.

Re: ~v8.30.0012+ Quotes in CTB name corrupts click action.

Posted: 12 Aug 2013 21:44
by Enternal
That's interesting. I reported this issue a long time ago and I was sure it was fixed. I guess it came back or something.

EDIT: Nevermind. They're very similar but not quite the same. The problem I reported was when you put quotes in the actual Script section which would then corrupt the script.

Re: ~v8.30.0012+ Quotes in CTB name corrupts click action.

Posted: 02 Sep 2013 13:26
by admin
TheQwerty wrote:Quotes should either be escaped, removed (like '|'), or rejected with errors.
I will remove them. Thanks!