Skip to content
Snippets Groups Projects
Commit 3ec67c97 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

combine_path: Fixed corner case.

combine_path() on strings starting with "./../" used to gain one
directory level. Eg:

  Old behavior:
    > combine_path(".", "../foo");
    (1) Result: "../foo"
    > combine_path("./..", "foo");
    (2) Result: "foo"
    > combine_path("./../foo");
    (3) Result: "foo"

  New (fixed) behavior:
    > combine_path(".", "../foo");
    (1) Result: "../foo"
    > combine_path("./..", "foo");
    (2) Result: "../foo"
    > combine_path("./../foo");
    (3) Result: "../foo"

Fixes [PIKE-137].
parent f3839f06
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment