mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-23 11:08:18 +02:00
Fix:Base64 encoding include URL_SAFE flag to prevent having / in local library item ids #192
This commit is contained in:
parent
62c5042ecc
commit
06739c0401
1 changed files with 1 additions and 1 deletions
|
@ -24,6 +24,6 @@ object DeviceManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getBase64Id(id:String):String {
|
fun getBase64Id(id:String):String {
|
||||||
return android.util.Base64.encodeToString(id.toByteArray(), android.util.Base64.NO_WRAP)
|
return android.util.Base64.encodeToString(id.toByteArray(), android.util.Base64.URL_SAFE or android.util.Base64.NO_WRAP)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue