Jindo wrote:
> Hello,
> 
> According to docs, $r->prev returns undef unless there is an internal
> redirect.  But to 
> my surprises, $r->prev is always defined, severely breaking down the
> code/flow logic 
> of my scripts.
> 
> Here is what I have in /Index.cgi (My browser defaults to that page) for
> debugging
> $r->log_error($r->prev()->uri());
> $r->log_error($r->uri());

I'd suspect that it's probably mod_dir (via DirectoryIndex) that's 
causing this (since it calls ap_internal_redirect, which sets $r->prev 
and $r->prev->uri).

I also suspect that if you called /Index.cgi directly, you'd get a 500 
(and $r->prev would be undef so $r->prev->uri would bomb).

HTH

--Geoff

Reply via email to