Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTry to parse command line argument as file names #3365
Conversation
… when parsing as an absolute URL (without a base) fails. Previously, arguments were parsed as URLs with the current working directory converted to an URL and used as the base URL. This mostly worked for relative filenames, except that `?` and `#` had a special meaning and needed to be percent-encoded. Fix #3340.
hoppipolla-critic-bot
commented
Sep 16, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/2607 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
Whoops. |
The previous commit made #top be considered part of the file name in ../html/acid2.html#top
|
I have a one-line patch to rust-url that accomplishes the same thing. It may or may not be worse, but I'll post it here for you guys to decide.
|
|
@cgaebel, no, |
|
Ok. |
|
But thanks for the help anyway! :) |
Try to parse command line argument as file names
SimonSapin commentedSep 16, 2014
… when parsing as an absolute URL (without a base) fails.
Previously, arguments were parsed as URLs with the current working directory converted to an URL and used as the base URL. This mostly worked for relative filenames, except that
?and#had a special meaning and needed to be percent-encoded.Fix #3340.
r? @metajack