mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-08 14:26:02 +01:00
Fix base64 decode issue with short signal.me URLs.
This commit is contained in:
committed by
Michelle Tang
parent
9ca47f5fc5
commit
2162fccd7d
+13
@@ -0,0 +1,13 @@
|
||||
package org.thoughtcrime.securesms.profiles.manage
|
||||
|
||||
import assertk.assertThat
|
||||
import assertk.assertions.isNull
|
||||
import org.junit.Test
|
||||
|
||||
class UsernameRepositoryTest {
|
||||
@Test
|
||||
fun parseLink_one_character_base64_ref() {
|
||||
val url = "https://signal.me/#eu/A"
|
||||
assertThat(UsernameRepository.parseLink(url)).isNull()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user