Re: [PATCH 3/7] Extract, test and enhance the logic to collapse ../foo paths.
From: Eric Wong <hidden> Date: 2016-06-15 22:54:52
Jonathan Nieder [off-list ref] wrote:
Eric Wong wrote:
quoted
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/.."?
It should probably just return the root path ("c:/" and
"http://www.example.com/" respectively).