mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
Fix PathInfo
This commit is contained in:
parent
e88f079da6
commit
4e229ad86b
@ -341,10 +341,10 @@ namespace Emby.Server.Implementations.SocketSharp
|
|||||||
{
|
{
|
||||||
var mode = HandlerFactoryPath;
|
var mode = HandlerFactoryPath;
|
||||||
|
|
||||||
var pos = request.Path.ToString().IndexOf("?", StringComparison.Ordinal);
|
var pos = RawUrl.IndexOf("?", StringComparison.Ordinal);
|
||||||
if (pos != -1)
|
if (pos != -1)
|
||||||
{
|
{
|
||||||
var path = request.Path.ToString().Substring(0, pos);
|
var path = RawUrl.Substring(0, pos);
|
||||||
this.pathInfo = GetPathInfo(
|
this.pathInfo = GetPathInfo(
|
||||||
path,
|
path,
|
||||||
mode,
|
mode,
|
||||||
@ -352,10 +352,10 @@ namespace Emby.Server.Implementations.SocketSharp
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.pathInfo = request.Path.ToString();
|
this.pathInfo = RawUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pathInfo = System.Net.WebUtility.UrlDecode(pathInfo);
|
this.pathInfo = WebUtility.UrlDecode(pathInfo);
|
||||||
this.pathInfo = NormalizePathInfo(pathInfo, mode);
|
this.pathInfo = NormalizePathInfo(pathInfo, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user