From apwww@hyperreal.org Mon Sep 8 17:41:45 1997 Received: (from apwww@localhost) by hyperreal.org (8.8.5/8.8.5) id RAA04560; Mon, 8 Sep 1997 17:41:45 -0700 (PDT) Message-Id: <199709090041.RAA04560@hyperreal.org> Date: Mon, 8 Sep 1997 17:41:45 -0700 (PDT) From: Brian Slesinsky Reply-To: bslesins@wired.com To: apbugs@hyperreal.org Subject: mod_rewrite can't redirect URL's containing %2F X-Send-Pr-Version: 3.2 >Number: 1103 >Category: mod_rewrite >Synopsis: mod_rewrite can't redirect URL's containing %2F >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Sep 8 17:50:01 1997 >Last-Modified: Thu Sep 18 12:27:47 PDT 1997 >Originator: bslesins@wired.com >Organization: >Release: 1.2.0 >Environment: Solaris and Linux >Description: If there is a %2F (escaped '/') anwhere within a URL and it's redirected with mod_rewrite, Apache will return an error instead of redirecting it. This causes problems when we try to redirect a GET form submission and one of the form variables contains a pathname. This is probably because mod_rewrite calls unescape_url(), which deliberately croaks for %2F. >How-To-Repeat: Add this to a config file: RewriteEngine On RewriteRule ^/foo http://www.apache.org/ [R] Try this URL: http://localhost/foo%2F >Fix: Provide an alternative to unescape_url() that doesn't do anything special for %2F. %0 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: dgaudet State-Changed-When: Thu Sep 18 12:27:46 PDT 1997 State-Changed-Why: Related to PR#543. >Unformatted: