You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2001/09/17 08:16:24 UTC

Null r->uri?

From: "Cliff Woolley" <cl...@yahoo.com>
Sent: Monday, September 17, 2001 12:05 AM


> It did up until about two weeks ago, but then that was because r->uri was
> set to a completely bogus value (the string "INTERNALLY GENERATED
> file-relative req" or something like that), rather than just "".  =-)  I
> don't think r->uri can be actually NULL, though (somebody correct me if
> I'm wrong).

We haven't decided what should become of r->uri in a relative file lookup 
yet, have we?  I'd suggest the undecorated (relative) file name itself, 
e.g. "file.foo".  Clearly invalid (it's relative) yet protective (it hits 
all tests except <location >, and other applications interested in r->uri 
won't be overly confused).

We can set an apr_pool_userdata element to flag that it is a legitimate
exception, and filter those out again later in the request parsing.

Bill