diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-08-30 08:39:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-30 08:39:36 -0400 |
| commit | a7e99798651b39e3fdbeb5e5de7d10f30c6c84e5 (patch) | |
| tree | ecec2a317459d68031362c549bdcfd77b5ca2c99 /MediaBrowser.Common.Implementations | |
| parent | e8977c44857907cab171e4726db096508673735a (diff) | |
| parent | 6b3e1951e2ad03d5331864e227db09fff1caacb4 (diff) | |
Merge pull request #2126 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Common.Implementations')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs index 4e01041bc..10c0f8fc9 100644 --- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs +++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs @@ -142,9 +142,15 @@ namespace MediaBrowser.Common.Implementations.Security } set { - if (value != LicenseFile.RegKey) + var newValue = value; + if (newValue != null) { - LicenseFile.RegKey = value; + newValue = newValue.Trim(); + } + + if (newValue != LicenseFile.RegKey) + { + LicenseFile.RegKey = newValue; LicenseFile.Save(); // re-load registration info |
