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

make sure to encode URL components for API requests #4575

Merged
merged 4 commits into from Dec 19, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Nov 21, 2013

Both notebook name and path can have spaces, hashes, other special characters. Most common characters didn't cause problems, but hashes certainly did.

This shouldn't be merged until I work out a test for it.

closes #4574
closes #4620

like url_path_join, but escapes url components
this.notebook_name = json.name
var name = this.notebook_name
var path = json.path
console.log(json);
Copy link
Member

Choose a reason for hiding this comment

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

forgotten debug.

notebook names can have spaces, hashes, other special characters.
@Carreau
Copy link
Member

Carreau commented Nov 28, 2013

+1

@takluyver
Copy link
Member

@minrk, in #4620, you said this is waiting for tests. Just a reminder.

@minrk
Copy link
Member Author

minrk commented Dec 16, 2013

Finally got around to adding the test. Should be ready for a review now.

@Carreau
Copy link
Member

Carreau commented Dec 18, 2013

👍

minrk added a commit that referenced this pull request Dec 19, 2013
make sure to encode URL components for API requests
@minrk minrk merged commit 0c1f17a into ipython:master Dec 19, 2013
@minrk minrk deleted the encode_paths branch December 19, 2013 17:49
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
make sure to encode URL components for API requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants