To ensure that there is a slash between the parent and relpath being appended, oc_path_append was checking the last character of parent and erroneously the LAST character of relpath for a slash. This fixes the error by checking the FIRST character of relpath instead.
To ensure that there is a slash between the parent and relpath being appended, oc_path_append was checking the last character of parent and erroneously the LAST character of relpath for a slash. This fixes the error by checking the FIRST character of relpath instead.