On Mon, Oct 1, 2012 at 7:34 AM, Christoph Gröver <gro...@sitepark.com> wrote:
>
> Hello Daniel,
>
>> Just a quick suggestion; Have you tried r->user ?
>
> Tak! Really a good suggestion. r->user is set if it's run
> in the fixup hook.
>
> I still would like to know if it's possible to access variables set by
> other modules, but for the current development it'll be sufficient.

Sometimes envvars are set directly into subprocess_env (e.g., handling
of SetEnv/SetEnvIf).  IOW, subprocess_env is the primary
representation.

But the REMOTE_USER and HTTP request header variables are a
representation of information stored elsewhere (r->user,
r->headers_in), and that envvar representation is created just before
running an external process.

A module should always look at the primary representation, in this case r->user.

>
> With kind regards.
>
> Christoph Grøver
>
> --



-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Reply via email to