Skip to content

Commit

Permalink
fix(Reddit - Sanitize sharing links): Restore compatibility with newe…
Browse files Browse the repository at this point in the history
…r versions of the app
  • Loading branch information
oSumAtrIX committed Oct 19, 2023
1 parent c954502 commit 1671d8d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package app.revanced.patches.reddit.misc.tracking.url.fingerprints
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint

object ShareLinkFormatterFingerprint : MethodFingerprint(
returnType = "Ljava/lang/String;",
parameters = listOf("Ljava/lang/String;", "Ljava/util/Map;"),
strings = listOf("uri.getQueryParameters(name)", "uri.queryParameterNames", "newUriBuilder.build().toString()"),
customFingerprint = { methodDef, classDef ->
methodDef.definingClass.startsWith("Lcom/reddit/sharing/") && classDef.sourceFile == "UrlUtil.kt"
}
)

0 comments on commit 1671d8d

Please sign in to comment.