remove COMMAND intent argument from ShareActivity due to security vulnerabilities
This commit is contained in:
parent
74438bb972
commit
2433b3768c
1 changed files with 0 additions and 6 deletions
|
|
@ -177,7 +177,6 @@ class ShareActivity : BaseActivity() {
|
|||
|
||||
val type = intent.getStringExtra("TYPE")
|
||||
val background = intent.getBooleanExtra("BACKGROUND", false)
|
||||
val command = intent.getStringExtra("COMMAND") ?: ""
|
||||
|
||||
lifecycleScope.launch {
|
||||
val result: ResultItem
|
||||
|
|
@ -204,11 +203,6 @@ class ShareActivity : BaseActivity() {
|
|||
result = result,
|
||||
givenType = downloadType)
|
||||
|
||||
if (downloadType == DownloadViewModel.Type.command && command.isNotBlank()){
|
||||
downloadItem.format.format_note = command
|
||||
}else{
|
||||
downloadItem.extraCommands = downloadItem.extraCommands + " $command"
|
||||
}
|
||||
downloadViewModel.queueDownloads(listOf(downloadItem))
|
||||
}
|
||||
this@ShareActivity.finish()
|
||||
|
|
|
|||
Loading…
Reference in a new issue