Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 24160 invoked from network); 21 Jun 2005 10:53:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2005 10:53:06 -0000 Received: (qmail 85046 invoked by uid 500); 21 Jun 2005 10:53:05 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 85028 invoked by uid 500); 21 Jun 2005 10:53:04 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 85015 invoked by uid 99); 21 Jun 2005 10:53:04 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 21 Jun 2005 03:53:04 -0700 Received: (qmail 24149 invoked by uid 65534); 21 Jun 2005 10:53:04 -0000 Message-ID: <20050621105304.24148.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r191647 - /httpd/httpd/trunk/server/util_script.c Date: Tue, 21 Jun 2005 10:53:03 -0000 To: cvs@httpd.apache.org From: niq@apache.org X-Mailer: svnmailer-1.0.2 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: niq Date: Tue Jun 21 03:53:00 2005 New Revision: 191647 URL: http://svn.apache.org/viewcvs?rev=191647&view=rev Log: PR 10755: committing patch from Christian Schubert Modified: httpd/httpd/trunk/server/util_script.c Modified: httpd/httpd/trunk/server/util_script.c URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/server/util_script.c?rev=191647&r1=191646&r2=191647&view=diff ============================================================================== --- httpd/httpd/trunk/server/util_script.c (original) +++ httpd/httpd/trunk/server/util_script.c Tue Jun 21 03:53:00 2005 @@ -289,7 +289,11 @@ 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;