• If you need help or want to discuss things, you now can also join us on our Discord Server!

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

syscaller

Donor
is awesome!
is uber awesome!
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 :)
 

Similar threads

Top