Robustness

This commit is contained in:
Benoit Marty 2021-02-05 13:56:11 +01:00
parent bfd974f698
commit e27c5c4507
1 changed files with 2 additions and 1 deletions

View File

@ -32,8 +32,9 @@ class JitsiWidgetProperties(private val uriString: String, val stringProvider: S
private val configs: Map<String, String?> by lazy {
configString?.split("&")
?.map { it.split("=") }
?.filter { it.size == 2 }
?.map { (key, value) -> key to URLDecoder.decode(value, "UTF-8") }
?.toMap()
?: mapOf()
.orEmpty()
}
}