-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display clipboard contents in the multiple line warning dialog box when pasting into Terminal #7997
Comments
Hi. I'm trying to convert to |
(I'm not author or expert so feel free to discard my comment 😄) |
When we display a dialog to warn the user that they are doing a multi-line paste, we show the clipboard contents The contents are shown in a scroll viewer with a fixed maximum height. Closes #7997
🎉This issue was addressed in #8744, which has now been successfully released as Handy links: |
…oft#8744) When we display a dialog to warn the user that they are doing a multi-line paste, we show the clipboard contents The contents are shown in a scroll viewer with a fixed maximum height. Closes microsoft#7997
Evil Copy Paste Protection!
Background
It just recently came to my attention that you can do some scary stuff by hiding evil commands inside seemingly safe commands copied from the internet!
As a mostly copy paste developer, I copy things all the time! I never even thought I could copy something and what actually ended up on my clipboard would be something else!
See this site for details:
https://briantracy.xyz/writing/copy-paste-shell.html
This is the tweet that lead to me learning about this:
https://twitter.com/JGamblin/status/1317987698825625600?s=19
So basically, you can copy one thing and then end up pasting another!
What to do?
Well, @cinnamon-msft let me know Terminal already does this:
So what if it also showed the contents of the clipboard so you could see what's really on the clipboard? Like this:
That's it! That's the idea!
The text was updated successfully, but these errors were encountered: