aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-10-08 14:07:30 +0200
committerGitHub <noreply@github.com>2023-10-08 14:07:30 +0200
commit0b31997b2f5fa3245f80711d703a4247cfbb0363 (patch)
tree357cc2919e8eacc33a8defdb19c06f89836ea96e /Emby.Server.Implementations/Updates
parentcf806ddcaade30a2a656b4974f12b9453c8d21e7 (diff)
parentb176beb88e22a36cc056439ac2a4df4fbe68f2c1 (diff)
Merge pull request #10348 from Bond-009/strings
Diffstat (limited to 'Emby.Server.Implementations/Updates')
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs
index 6c198b6f9..77d385ba1 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -504,8 +504,7 @@ namespace Emby.Server.Implementations.Updates
private async Task PerformPackageInstallation(InstallationInfo package, PluginStatus status, CancellationToken cancellationToken)
{
- var extension = Path.GetExtension(package.SourceUrl);
- if (!string.Equals(extension, ".zip", StringComparison.OrdinalIgnoreCase))
+ if (!Path.GetExtension(package.SourceUrl.AsSpan()).Equals(".zip", StringComparison.OrdinalIgnoreCase))
{
_logger.LogError("Only zip packages are supported. {SourceUrl} is not a zip archive.", package.SourceUrl);
return;