Fix websearch URLs not being encoded properly

Fix #160
This commit is contained in:
MM20 2022-08-29 15:02:57 +02:00
parent 019afb33c9
commit a193c5aced
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -36,7 +36,7 @@ class Websearch(
if(query == null) return null
val intent = Intent(Intent.ACTION_VIEW)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
val url = urlTemplate.replace("\${1}", query)
val url = urlTemplate.replace("\${1}", Uri.encode(query))
intent.data = Uri.parse(url)
return intent
}