diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-01-27 23:23:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-27 23:23:19 -0500 |
| commit | fd93caf37f27c8e197af37b89960195ea023e7b1 (patch) | |
| tree | 9f04111e31ecac922882e9353f108baa804198c9 /Emby.Server.Core/Configuration/ServerConfigurationManager.cs | |
| parent | 90420a7c23712e982c9062bf7e14f65195c2a723 (diff) | |
| parent | f616aee90b1a27a573302740cfa17d420a2b6bc1 (diff) | |
Merge pull request #2428 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Core/Configuration/ServerConfigurationManager.cs')
| -rw-r--r-- | Emby.Server.Core/Configuration/ServerConfigurationManager.cs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Emby.Server.Core/Configuration/ServerConfigurationManager.cs b/Emby.Server.Core/Configuration/ServerConfigurationManager.cs index f98c096ca..eb3d8b9f9 100644 --- a/Emby.Server.Core/Configuration/ServerConfigurationManager.cs +++ b/Emby.Server.Core/Configuration/ServerConfigurationManager.cs @@ -141,7 +141,6 @@ namespace Emby.Server.Core.Configuration { var newConfig = (ServerConfiguration)newConfiguration; - ValidatePathSubstitutions(newConfig); ValidateMetadataPath(newConfig); ValidateSslCertificate(newConfig); @@ -173,17 +172,6 @@ namespace Emby.Server.Core.Configuration } } - private void ValidatePathSubstitutions(ServerConfiguration newConfig) - { - foreach (var map in newConfig.PathSubstitutions) - { - if (string.IsNullOrWhiteSpace(map.From) || string.IsNullOrWhiteSpace(map.To)) - { - throw new ArgumentException("Invalid path substitution"); - } - } - } - /// <summary> /// Validates the metadata path. /// </summary> |
