Re: [PATCH 3/7] Extract, test and enhance the logic to collapse ../foo paths.
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Sep 26, 2012, 21:38 UTC
- Message-ID
- <20120926213831.GB30131@elie.Belkin>
- In-Reply-To
- <20120926205851.GA2166@dcvr.yhbt.net>
Eric Wong wrote:
> That said, I'd favor an implementation that split on m{/+} and
> collapsed as Michael mentioned.Sounds sensible. Is canonicalize_path responsible for collapsing runs of slashes? What should _collapse_dotdot do to "c:/.." or "http://www.example.com/.."?