mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Url decode for auth value
This commit is contained in:
parent
b611a108f8
commit
6e2cfc6569
@ -273,10 +273,16 @@ namespace Emby.Server.Implementations.HttpServer.Security
|
|||||||
{
|
{
|
||||||
var param = item.Trim().Split('=', 2);
|
var param = item.Trim().Split('=', 2);
|
||||||
|
|
||||||
result[param[0]] = param[1].Trim('"');
|
var value =param[1].Trim('"');
|
||||||
|
result[param[0]] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static string NormalizeValue(string value)
|
||||||
|
{
|
||||||
|
return string.IsNullOrEmpty(value) ? value : WebUtility.UrlDecode(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user