Mod Rewrite with URL-encoded nulls (%00) in the request path

New to mod_rewrite? This is a good place to start.

Mod Rewrite with URL-encoded nulls (%00) in the request path

Postby alanapar » Fri Feb 21, 2003 9:34 pm

I have a server for which I want *all* requests to go to a perl script.

So I have set for this server:

RewriteEngine on
RewriteRule ^/ /whatever/my-script.pl

This works fine until I make a request like

http://host/xxx%00yyy

I get a 404 response code, and my script is executed, but the SCRIPT_URL value (normally the same as the request path in this case) is set to the path I specified in the Apache config as
ErrorDocument 404 /not_found

Is this a mis-configuration or abuse on my part, a bug or a feature?

This only seems to happen with a URL-encoded null in the path. Other encoded values are OK.
alanapar
 
Posts: 1
Joined: Fri Feb 21, 2003 9:18 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 9 guests

cron