Skip to content
Snippets Groups Projects
Commit 2100623b authored by Kevin O'Rourke's avatar Kevin O'Rourke Committed by Per Hedbor
Browse files

TURBO2-711: Fix URI path combining for empty base URI path.

parent 73a2b7b4
No related branches found
No related tags found
No related merge requests found
......@@ -123,10 +123,7 @@ string combine_uri_path(string base, string rel)
// copied to the buffer. In other words, any characters after the
// last (right-most) slash character, if any, are excluded.
array segments=base/"/";
if(has_value(base, "/"))
buf=segments[..<1]*"/"+"/";
else
buf=base;
// b) The reference's path component is appended to the buffer string.
buf+=rel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment