aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Localization
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-08 02:24:52 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-08 02:24:52 -0500
commitd5c7845917bd15a945aacb92f50db6502123ad9a (patch)
treeb4f9ecfd2d716733ff04406d9360d084ec11cf18 /Emby.Server.Core/Localization
parentcf57e8193c5108804724dd55242a56e03b907ed7 (diff)
parent23010f2980381a4b56e05620d4604cafc0e00043 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/Emby
Diffstat (limited to 'Emby.Server.Core/Localization')
-rw-r--r--Emby.Server.Core/Localization/TextLocalizer.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Emby.Server.Core/Localization/TextLocalizer.cs b/Emby.Server.Core/Localization/TextLocalizer.cs
index 6690c6263..1e8ccbbfa 100644
--- a/Emby.Server.Core/Localization/TextLocalizer.cs
+++ b/Emby.Server.Core/Localization/TextLocalizer.cs
@@ -39,7 +39,15 @@ namespace Emby.Server.Core.Localization
}
}
- return text.Normalize(form);
+ try
+ {
+ return text.Normalize(form);
+ }
+ catch (ArgumentException)
+ {
+ // if it still fails, return the original text
+ return text;
+ }
}
private static string StripInvalidUnicodeCharacters(string str)