Mailing List Archive

ap_server_root_relative
Yann, thanks for you PRs. Just one thing:

ap_server_root_relative("/") -> "/"

in my reading of the code. Why am I wrong?
Re: ap_server_root_relative [ In reply to ]
On Fri, Oct 8, 2021 at 3:23 PM stefan@eissing.org <stefan@eissing.org> wrote:
>
> Yann, thanks for you PRs. Just one thing:
>
> ap_server_root_relative("/") -> "/"
>
> in my reading of the code. Why am I wrong?

Nothing wrong, it was my bad, but ap_server_root_relative() normalizes too so:
ap_server_root_relative("/here/../there") -> "/there"

And Before RĂ¼diger's r1894024, mod_alias could have:
ap_server_root_relative("/here/../../there") -> "/there"

Cheers;
Yann.