diff --git a/packages/integrations/src/download-client/nzbget/nzbget-integration.ts b/packages/integrations/src/download-client/nzbget/nzbget-integration.ts index ca2215624..f09135348 100644 --- a/packages/integrations/src/download-client/nzbget/nzbget-integration.ts +++ b/packages/integrations/src/download-client/nzbget/nzbget-integration.ts @@ -96,7 +96,7 @@ export class NzbGetIntegration extends DownloadClientIntegration { ): Promise> { const username = this.getSecretValue("username"); const password = this.getSecretValue("password"); - const url = this.url(`/${username}:${password}/jsonrpc`); + const url = this.url(`/${encodeURIComponent(username)}:${encodeURIComponent(password)}/jsonrpc`); const body = JSON.stringify({ method, params }); return await fetchWithTrustedCertificatesAsync(url, { method: "POST", body }) .then(async (response) => {