mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-20 15:31:30 +01:00
Fix:Base64 encoding include URL_SAFE flag to prevent having / in local library item ids #192
This commit is contained in:
1 parent
62c5042ecc
commit
06739c0401
1 file changed
+1
-1
@@ -24,6 +24,6 @@ object DeviceManager {
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user