Skip to content

Commit

Permalink
Redact auth_token from error report
Browse files Browse the repository at this point in the history
  • Loading branch information
fibelatti committed Jan 14, 2025
1 parent fd91e5a commit 168eedd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fun ErrorReportDialog(
appendLine("---")
appendLine("This error just happened to me:")
appendLine()
append(sw.toString())
append(sw.toString().replace(regex = "&auth_token=.*[^&]".toRegex(), replacement = ""))
}

val emailIntent = Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:")).apply {
Expand Down

0 comments on commit 168eedd

Please sign in to comment.