Cleanup HTML decoding fix.
This commit is contained in:
parent
132b1dc281
commit
a3c9ac642a
|
@ -74,7 +74,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string latestVersionInfo = DownloadURLAsString(_latestVersionInfoURL);
|
string latestVersionInfo = WebUtility.HtmlDecode(DownloadURLAsString(_latestVersionInfoURL));
|
||||||
|
|
||||||
LatestVersion = GetVersionNumberFromVersionInfo(latestVersionInfo);
|
LatestVersion = GetVersionNumberFromVersionInfo(latestVersionInfo);
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private static string GetTextFromTag(string info, string tagName)
|
private static string GetTextFromTag(string info, string tagName)
|
||||||
{
|
{
|
||||||
info = info.Replace("[", "[").Replace("]", "]").Replace("/", "/");
|
|
||||||
string openTag = "[" + tagName + "]";
|
string openTag = "[" + tagName + "]";
|
||||||
string closeTag = "[/" + tagName + "]";
|
string closeTag = "[/" + tagName + "]";
|
||||||
int start = info.IndexOf(openTag, StringComparison.OrdinalIgnoreCase);
|
int start = info.IndexOf(openTag, StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
Loading…
Reference in New Issue