Skip to content

Commit

Permalink
- Fix issue with # in BhadooIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Nov 14, 2021
1 parent 317ae89 commit 2063d68
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public static async Task<WebDirectory> ParseIndex(IHtmlDocument htmlDocument, Ht

Console.WriteLine("Check if password is needed (unsupported currently)...");
Logger.Info("Check if password is needed (unsupported currently)...");
OpenDirectoryIndexer.Session.Parameters[Constants.Parameters_Password] = "@ttu001";

Dictionary<string, string> postValues = new Dictionary<string, string>
{
Expand Down Expand Up @@ -219,7 +218,7 @@ private static async Task<WebDirectory> ScanAsync(IHtmlDocument htmlDocument, Ht
{
Parser = Parser,
// Yes, string concatenation, do not use new Uri(webDirectory.Uri, file.Name), because things could end with a space...
Url = $"{webDirectory.Uri}{file.Name}/",
Url = $"{webDirectory.Uri}{file.Name.Replace("#", "%23")}/",
Name = file.Name
});
}
Expand Down

0 comments on commit 2063d68

Please sign in to comment.