Skip to content

Commit

Permalink
[bug] fixes a template-injection in the checklist preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Sep 17, 2024
1 parent 4b79463 commit 9257354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class MainActivityViewModel(application: Application) : AndroidViewModel(applica
throw IllegalArgumentException("Only checklist notes allowed")
}
return ChecklistUtil.parse(note.content).map { (checked, name) ->
return@map Pair(checked, String.format("[%s] $name", if (checked) "x" else " "))
return@map Pair(checked, "[${if (checked) "x" else " "}] $name")
}
}

Expand Down

0 comments on commit 9257354

Please sign in to comment.