mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 03:50:08 -07:00
Fixed #2427
This commit is contained in:
parent
20100b0146
commit
b60e802ba7
1 changed files with 12 additions and 1 deletions
|
@ -41,7 +41,18 @@ namespace Ombi.Api.Plex
|
|||
}
|
||||
else
|
||||
{
|
||||
_app = settings.ApplicationName;
|
||||
// Check for non-ascii characters (New .Net Core HTTPLib does not allow this)
|
||||
var chars = settings.ApplicationName.ToCharArray();
|
||||
var hasNonAscii = false;
|
||||
foreach (var c in chars)
|
||||
{
|
||||
if (c > 128)
|
||||
{
|
||||
hasNonAscii = true;
|
||||
}
|
||||
}
|
||||
|
||||
_app = hasNonAscii ? "Ombi" : settings.ApplicationName;
|
||||
}
|
||||
|
||||
return _app;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue