aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-20 15:27:40 -0400
committerGitHub <noreply@github.com>2016-10-20 15:27:40 -0400
commit367e17826eb49d855d9ae30462072c5e295f5b33 (patch)
tree39e06e3c38bbd4933ed3aeb100f8f2a22a25f211 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parentd2d49b6b760ad3d74712c0839c66296476ab858e (diff)
parent3c1114228ba3b6a19cb73fa7f9aaa4e3ce3cab80 (diff)
Merge pull request #2250 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index b2302cf86..64abcc044 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -2838,9 +2838,13 @@ namespace MediaBrowser.Server.Implementations.Library
private bool ValidateNetworkPath(string path)
{
- if (Environment.OSVersion.Platform == PlatformID.Win32NT || !path.StartsWith("\\\\", StringComparison.OrdinalIgnoreCase))
+ if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
- return Directory.Exists(path);
+ // We can't validate protocol-based paths, so just allow them
+ if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) == -1)
+ {
+ return Directory.Exists(path);
+ }
}
// Without native support for unc, we cannot validate this when running under mono