mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-26 01:53:13 +08:00
fix(feedback): Don't include tokens in feedback logs
This commit is contained in:
parent
2fc89f7d6f
commit
feacf8948b
1 changed files with 6 additions and 0 deletions
|
@ -114,11 +114,17 @@ ActivityBar = React.createClass
|
|||
|
||||
_onFeedback: ->
|
||||
user = NamespaceStore.current().name
|
||||
|
||||
debugData = JSON.stringify({
|
||||
queries: @state.curlHistory,
|
||||
queue: @state.queue,
|
||||
queue_pending: @state.queuePending
|
||||
}, null, '\t')
|
||||
|
||||
# Remove API tokens from URLs included in the debug data
|
||||
# This regex detects ://user:pass@ and removes it.
|
||||
debugData = debugData.replace(/:\/\/(\w)*:(\w)?@/g, '://')
|
||||
|
||||
draft = new Message
|
||||
from: [NamespaceStore.current().me()]
|
||||
to: [
|
||||
|
|
Loading…
Reference in a new issue