Skip to content

norm_path('/../foo') => '/../foo'? #5

@dairiki

Description

@dairiki

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions