From 2afea71557cfe4eb64d7c7ebf5a07dfd24a11824 Mon Sep 17 00:00:00 2001 From: Palm Date: Mon, 12 Jun 2023 11:49:33 +0700 Subject: [PATCH] fix(syncforreddit/change-oauth-client-id): trim whitespace from OAuth string (#2402) This solves patching errors, when the string includes whitespace --- .../syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt b/src/main/kotlin/app/revanced/patches/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt index dae98e69e..4be59331d 100644 --- a/src/main/kotlin/app/revanced/patches/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/syncforreddit/api/patch/ChangeOAuthClientIdPatch.kt @@ -50,7 +50,7 @@ class ChangeOAuthClientIdPatch : BytecodePatch( """.trimIndent() return PatchResultError(error) - }.let { clientId = it.readText() } + }.let { clientId = it.readText().trim() } } GetAuthorizationStringFingerprint.result?.also { result -> @@ -96,4 +96,4 @@ class ChangeOAuthClientIdPatch : BytecodePatch( ) ) } -} \ No newline at end of file +}