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:
parent
819c89c3fa
commit
004f29b6a7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user