From 004f29b6a7d58ea3d04c2798c7de2e3bc008e1d7 Mon Sep 17 00:00:00 2001 From: TheLastMelon <58635083+TheLastMelon@users.noreply.github.com> Date: Sat, 4 Jan 2020 16:31:07 -0500 Subject: [PATCH] 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 --- source/api/userauth.brs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/api/userauth.brs b/source/api/userauth.brs index 9d45a936..8e9d1e89 100644 --- a/source/api/userauth.brs +++ b/source/api/userauth.brs @@ -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