瀏覽代碼

handle bad profile value

Luke Pulverenti 9 年之前
父節點
當前提交
039487740b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Emby.Dlna/DlnaManager.cs

+ 6 - 0
Emby.Dlna/DlnaManager.cs

@@ -238,6 +238,12 @@ namespace Emby.Dlna
 
         private bool IsMatch(IDictionary<string, string> headers, HttpHeaderInfo header)
         {
+            // Handle invalid user setup
+            if (string.IsNullOrWhiteSpace(header.Name))
+            {
+                return false;
+            }
+
             string value;
 
             if (headers.TryGetValue(header.Name, out value))