The Free Software Media System - Server Backend & API
update take the tour
Luke Pulverentica994965c2a3
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.csindex c6452d8f5d..3e4f4a70c6 100644--- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -354,10 +354,13 @@ namespace MediaBrowser.Server.Implementations.HttpServervar newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase).Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase);- httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");+ if (!string.Equals(newUrl, urlString, StringComparison.OrdinalIgnoreCase))+ {+ httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");- httpRes.Close();- return Task.FromResult(true);+ httpRes.Close();+ return Task.FromResult(true);+ }}if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))