Skip to content
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

PR: Prevent pasting non-text data from clipboard into the editor #8569

Merged
merged 2 commits into from
Jan 13, 2019
Merged

PR: Prevent pasting non-text data from clipboard into the editor #8569

merged 2 commits into from
Jan 13, 2019

Conversation

Khalilsqu
Copy link
Contributor

@Khalilsqu Khalilsqu commented Jan 13, 2019

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot (if affecting the UI)

Old behaviour:
copy_names_olddd

New behaviour
copy_names_new

This PR prevents pasting files/folders paths into Spyder editor when they are copied into the OS clipboard. Text data still can be pasted safely within spyder editor, from spyder editor to external file or from an external source into spyder editor.

Folders/files but can be pasted into Project/File explorers if #8494 is accepted and merged into the master.

Issue(s) Resolved

Fixes #8566

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:
@Khalilsqu

@ccordoba12 ccordoba12 added this to the v4.0beta2 milestone Jan 13, 2019
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Khalilsqu!

@ccordoba12 ccordoba12 changed the title PR: Prevent pasting none text data from clipboard into the editor PR: Prevent pasting non-text data from clipboard into the editor Jan 13, 2019
@ccordoba12 ccordoba12 merged commit 75ad552 into spyder-ide:master Jan 13, 2019
@Khalilsqu Khalilsqu deleted the prevent-pasting-none-text-in-editor branch January 14, 2019 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants