Skip to content
Snippets Groups Projects
Commit 519d4386 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Sanitize streams URL before playing it

parent f38a34ca
No related branches found
No related tags found
1 merge request!535Audio fixes
......@@ -146,7 +146,7 @@ class MRLPanelFragment : Fragment(), View.OnKeyListener, TextView.OnEditorAction
private fun processUri(): Boolean {
if (!TextUtils.isEmpty(viewModel.observableSearchText.get())) {
val mw = MLServiceLocator.getAbstractMediaWrapper(Uri.parse(viewModel.observableSearchText.get()))
val mw = MLServiceLocator.getAbstractMediaWrapper(Uri.parse(viewModel.observableSearchText.get()?.trim()))
playMedia(mw)
viewModel.observableSearchText.set("")
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment