Made work around for jellyfin#93 (#102)

* Made work around for jellyfin#93

replaces ampersand with %26

* Passwords now fully URL Encoded

Replaces all charatcers with proper URL Encoded chars

* URL Encoding

Fixed, hopefully URL not properly encoding the pass
This commit is contained in:
TheLastMelon 2020-01-04 16:31:07 -05:00 committed by Nick Bisby
parent 819c89c3fa
commit 004f29b6a7

View File

@ -2,7 +2,8 @@ function get_token(user as String, password as String)
url = "Users/AuthenticateByName?format=json"
req = APIRequest(url)
json = postJson(req, "Username=" + user + "&Pw=" + password)
encPass = CreateObject("roUrlTransfer")
json = postJson(req, "Username=" + user + "&Pw=" + encPass.Escape(password) )
if json = invalid then return invalid