From ead2afcca0bb980a01f67c4f658d3118b99a18fc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 31 Jan 2017 16:25:14 -0500 Subject: [PATCH] update html preparation --- MediaBrowser.WebDashboard/Api/PackageCreator.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.cs index 7a788f6f0e..d2ec654561 100644 --- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs +++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs @@ -151,10 +151,13 @@ namespace MediaBrowser.WebDashboard.Api if (index != -1) { html = html.Substring(index); + + html = html.Substring(html.IndexOf('>') + 1); + index = html.IndexOf("", StringComparison.OrdinalIgnoreCase); if (index != -1) { - html = html.Substring(0, index+7); + html = html.Substring(0, index); } } var mainFile = _fileSystem.ReadAllText(GetDashboardResourcePath("index.html"));