diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-08-09 22:33:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-09 22:33:18 -0400 |
| commit | f8ad6655fbf2909bd3368ceac4b7947bea41b009 (patch) | |
| tree | 28b97a41062a51b9c626ab5a8e1fe3e0a687ad97 /Emby.Notifications/NotificationManager.cs | |
| parent | aafa11b48b8c86d5404d8c55c2fe46c1e5f29be6 (diff) | |
| parent | 9b2cf8501f082905b9b7b7b914dd42bba9d9e96d (diff) | |
Merge pull request #1023 from Bond-009/cultinvar
Use CultureInvariant string conversion for Guids
Diffstat (limited to 'Emby.Notifications/NotificationManager.cs')
| -rw-r--r-- | Emby.Notifications/NotificationManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Notifications/NotificationManager.cs b/Emby.Notifications/NotificationManager.cs index 3d1d4722d..a767e541e 100644 --- a/Emby.Notifications/NotificationManager.cs +++ b/Emby.Notifications/NotificationManager.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -101,7 +102,7 @@ namespace Emby.Notifications var config = GetConfiguration(); return _userManager.Users - .Where(i => config.IsEnabledToSendToUser(request.NotificationType, i.Id.ToString("N"), i.Policy)) + .Where(i => config.IsEnabledToSendToUser(request.NotificationType, i.Id.ToString("N", CultureInfo.InvariantCulture), i.Policy)) .Select(i => i.Id); } @@ -197,7 +198,7 @@ namespace Emby.Notifications return _services.Select(i => new NameIdPair { Name = i.Name, - Id = i.Name.GetMD5().ToString("N") + Id = i.Name.GetMD5().ToString("N", CultureInfo.InvariantCulture) }).OrderBy(i => i.Name); } |
