mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-14 06:53:12 +00:00
fix: Correctly handle patches jar path if it contains exclamation marks
This commit is contained in:
@@ -75,7 +75,7 @@ abstract class BaseIntegrationsPatch(
|
||||
val urlString = classUrl.toString()
|
||||
|
||||
if (urlString.startsWith("jar:file:")) {
|
||||
val end = urlString.indexOf('!')
|
||||
val end = urlString.lastIndexOf('!')
|
||||
return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user