The Free Software Media System - Server Backend & API
update html preparation
Luke Pulverentiead2afcca0bb
diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.csindex 7a788f6f0e..d2ec654561 100644--- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs+++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs@@ -151,10 +151,13 @@ namespace MediaBrowser.WebDashboard.Apiif (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"));