• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

[Minor Bug] client.getURL() returns the UID as URI-encoded.

syscaller

Active Member
Sinusbot Version: 1.0.0-beta.10-202ee4d
TS3 Version: 3.5.6
TS3-Server Version: 3.12.1

Hi, the client.getURL() Method returns not only the username, but also the uid as URI-encoded. That means, that uids as pr92K+nEp5gXrxTCN1yUHiQm/5c= will convert the '+' into '%2B' which will not be interpreted correctly by the teamspeak client. Ever since i noticed it, ive used this hotfix:
JavaScript:
function convertURL(url) {
        var splitter = url.indexOf('~') + 1;
        var username = url.substring(splitter);
        url = url.substring(0, splitter);
        return decodeURIComponent(url) + username;
    }
Would be nice if this gets fixed soon :)
 
Last edited:

flyth

is reticulating splines
Staff member
Developer
Contributor
Thanks for reporting. This will be fixed in the next version :)
 
Top