Currently norm_path('/../foo') returns '/../foo'. There is even a test for this behavior.
I would (perhaps naïvely) expect that the correct answer to be '/foo'. In particular, I think 'http://example.com/../foo' should normalize to 'http://example.com/foo'.
RFC 3986, as I read it, seems to agree with me.
Is there a good reason for the current behavior?
Currently
norm_path('/../foo')returns'/../foo'. There is even a test for this behavior.I would (perhaps naïvely) expect that the correct answer to be
'/foo'. In particular, I think'http://example.com/../foo'should normalize to'http://example.com/foo'.RFC 3986, as I read it, seems to agree with me.
Is there a good reason for the current behavior?