mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-24 18:45:50 +01:00
fix(syncforreddit/change-oauth-client-id): trim whitespace from OAuth string (#2402)
This solves patching errors, when the string includes whitespace
This commit is contained in:
parent
306f996017
commit
2afea71557
@ -50,7 +50,7 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
|
|||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|
||||||
return PatchResultError(error)
|
return PatchResultError(error)
|
||||||
}.let { clientId = it.readText() }
|
}.let { clientId = it.readText().trim() }
|
||||||
}
|
}
|
||||||
|
|
||||||
GetAuthorizationStringFingerprint.result?.also { result ->
|
GetAuthorizationStringFingerprint.result?.also { result ->
|
||||||
@ -96,4 +96,4 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user