Commit a5451462 authored by Nick Kew's avatar Nick Kew
Browse files

PR: 10775

Submitted by: Christian Schubert <mail apexo de>
Reviewed by: niq


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@191647 13f79535-47bb-0310-9956-ffa450edef68
parent 8f14ee5d
Loading
Loading
Loading
Loading
+5 −1
Changes for server/util_script.c: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -289,7 +289,11 @@ AP_DECLARE(int) ap_find_path_info(const char *uri, const char *path_info)
    int lu = strlen(uri);
    int lp = strlen(path_info);

    while (lu-- && lp-- && uri[lu] == path_info[lp]);
    while (lu-- && lp-- && uri[lu] == path_info[lp]) {
        if (path_info[lp] == '/') {
            while (lu && uri[lu-1] == '/') lu--;
        }
    }

    if (lu == -1) {
        lu = 0;