aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/Api/PackageCreator.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-01-31 16:30:29 -0500
committerGitHub <noreply@github.com>2017-01-31 16:30:29 -0500
commit2531e551b29d2bc3d9c32f28fa8392c5a982b04e (patch)
treed248ea49424d5c086564bf7df45bf07f071b9b17 /MediaBrowser.WebDashboard/Api/PackageCreator.cs
parent91d82b582fafcc5acc6a294198e8b44932ae3114 (diff)
parentbdf4cc0afa5626a4d17abac5c19dfb6e66c398ad (diff)
Merge pull request #2434 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.WebDashboard/Api/PackageCreator.cs')
-rw-r--r--MediaBrowser.WebDashboard/Api/PackageCreator.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.cs
index 7a788f6f0..d2ec65456 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("</body>", StringComparison.OrdinalIgnoreCase);
if (index != -1)
{
- html = html.Substring(0, index+7);
+ html = html.Substring(0, index);
}
}
var mainFile = _fileSystem.ReadAllText(GetDashboardResourcePath("index.html"));