-
Notifications
You must be signed in to change notification settings - Fork 181
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
Escape # in filename url #721
Conversation
git+https://github.com/org/project#egg=project can have # in the name and it should be escaped when used in a URL
asv/www/asv.js
Outdated
@@ -239,6 +239,7 @@ $(document).ready(function() { | |||
"LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", | |||
"LPT9"]; | |||
name = name.replace(bad_re, "_"); | |||
name = name.replace("#", "%23"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also take the comment above "The implementation must match asv.util.sanitize_filename" into account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just escaping the # character. Filename is the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or, possibly, this is not the right place to do the url quoting, but it should be done at the point where the json request is made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The replacement should be done in graph_to_path
, so that the comment does not become false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 7ba45ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, lgtm
Thanks |
git+https://github.com/org/project#egg=project can have # in the name and it should be escaped when used in a URL