aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Localization/TextLocalizer.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-03-08 02:24:30 -0500
committerGitHub <noreply@github.com>2017-03-08 02:24:30 -0500
commit23010f2980381a4b56e05620d4604cafc0e00043 (patch)
tree418b4ad6964c84d17ff9c33fa88b0e1a8bcacd34 /Emby.Server.Core/Localization/TextLocalizer.cs
parent0ac0a09c806112ce82dcd23f43c7df9ff8b5531d (diff)
parent314b84ae9ef5a692144b0a3a178ddcbd393c9fb9 (diff)
Merge pull request #2516 from MediaBrowser/beta
Beta
Diffstat (limited to 'Emby.Server.Core/Localization/TextLocalizer.cs')
-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)