Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 30644 invoked from network); 25 Dec 2006 12:07:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Dec 2006 12:07:26 -0000 Received: (qmail 9222 invoked by uid 500); 25 Dec 2006 12:07:33 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 9027 invoked by uid 500); 25 Dec 2006 12:07:33 -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 9014 invoked by uid 99); 25 Dec 2006 12:07:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Dec 2006 04:07:32 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Dec 2006 04:07:25 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id D3C1C1A981A; Mon, 25 Dec 2006 04:06:33 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r490142 - /httpd/httpd/trunk/modules/mappers/mod_alias.c Date: Mon, 25 Dec 2006 12:06:33 -0000 To: cvs@httpd.apache.org From: niq@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061225120633.D3C1C1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: niq Date: Mon Dec 25 04:06:33 2006 New Revision: 490142 URL: http://svn.apache.org/viewvc?view=rev&rev=490142 Log: PR#35314: Enable path components in Redirect Modified: httpd/httpd/trunk/modules/mappers/mod_alias.c Modified: httpd/httpd/trunk/modules/mappers/mod_alias.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_alias.c?view=diff&rev=490142&r1=490141&r2=490142 ============================================================================== --- httpd/httpd/trunk/modules/mappers/mod_alias.c (original) +++ httpd/httpd/trunk/modules/mappers/mod_alias.c Mon Dec 25 04:06:33 2006 @@ -204,7 +204,10 @@ if (ap_is_HTTP_REDIRECT(status)) { if (!url) return "URL to redirect to is missing"; - if (!use_regex && !ap_is_url(url)) + /* PR#35314: we can allow path components here; + * they get correctly resolved to full URLs. + */ + if (!use_regex && !ap_is_url(url) && (url[0] != '/')) return "Redirect to non-URL"; } else {