mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
...
This commit is contained in:
parent
defa2e29ac
commit
89ee128a92
1 changed files with 2 additions and 2 deletions
|
|
@ -1470,8 +1470,8 @@ class Window:
|
|||
if 'confirm' in opts.paste_actions:
|
||||
sanitized = sanitize_control_codes(text)
|
||||
if sanitized != text:
|
||||
msg = _('The text to be pasted contains terminal control codes. If the terminal program you are pasting into does not properly'
|
||||
' sanitize pasted text, this can lead to code execution vulnerabilities. How would you like to proceed?')
|
||||
msg = _('The text to be pasted contains terminal control codes.\nIf the terminal program you are pasting into does not properly'
|
||||
' sanitize pasted text, this can lead to code execution vulnerabilities.\nHow would you like to proceed?')
|
||||
get_boss().choose(
|
||||
msg, partial(self.handle_dangerous_paste_confirmation, btext, sanitized),
|
||||
's;green:Sanitize and paste', 'p;red:Paste anyway', 'c;yellow:Cancel',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue