From 317ae890e95edced9da7410c58146b9f125d7908 Mon Sep 17 00:00:00 2001 From: KoalaBear Date: Sun, 14 Nov 2021 13:40:21 +0100 Subject: [PATCH] - ASCII instead of UTF8 --- src/OpenDirectoryDownloader/Site/GoIndex/BhadooIndexParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenDirectoryDownloader/Site/GoIndex/BhadooIndexParser.cs b/src/OpenDirectoryDownloader/Site/GoIndex/BhadooIndexParser.cs index 04349f48..95888636 100644 --- a/src/OpenDirectoryDownloader/Site/GoIndex/BhadooIndexParser.cs +++ b/src/OpenDirectoryDownloader/Site/GoIndex/BhadooIndexParser.cs @@ -116,7 +116,7 @@ private static async Task DecodeResponse(IHtmlDocument htmlDocument, Htt if (Obfuscated) { - Func atob = str => Encoding.UTF8.GetString(Convert.FromBase64String(str)); + Func atob = str => Encoding.ASCII.GetString(Convert.FromBase64String(str)); JintEngine.SetValue("atob", atob); JintEngine.Execute(functions.FirstOrDefault(f => f.Name == "gdidecode").Body);