Skip to content

Commit

Permalink
fix: escape path
Browse files Browse the repository at this point in the history
  • Loading branch information
phuchptty committed May 28, 2022
1 parent b1d86a7 commit 227c6d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PPS Proxy/PPS Proxy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/The-P-Group/PhoenixPS-Proxy</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.1.3</Version>
<Version>1.1.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion PPS Proxy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Titanium.Web.Proxy.Models;
using IniParser;
using IniParser.Model;
using System.Web;

var parser = new FileIniDataParser();
IniData appConfig = parser.ReadFile("Configuration.ini");
Expand Down Expand Up @@ -41,7 +42,7 @@ Task OnRequest(object sender, SessionEventArgs e)
builder.Host = forwardHost;
builder.Path = abPath;

e.HttpClient.Request.RequestUri = builder.Uri;
e.HttpClient.Request.RequestUri = new Uri(Uri.UnescapeDataString(builder.Uri.ToString()));

Console.WriteLine("Redirected {0} to {1}", hostUrl, forwardHost);
}
Expand Down

0 comments on commit 227c6d4

Please sign in to comment.