I've used the patch sent by Doug.
--- mod_perl.h 1999/08/03 22:56:09 1.84
+++ mod_perl.h 1999/08/04 02:53:38
@@ -286,9 +286,10 @@
#define mp_setenv(key, val) \
{ \
int klen = strlen(key); \
- hv_store(GvHV(envgv), key, klen, newSVpv(val,0), FALSE); \
+ SV *sv = newSVpv(val,0); \
+ hv_store(GvHV(envgv), key, klen, sv, FALSE); \
HV_SvTAINTED_on(GvHV(envgv), key, klen); \
- my_setenv(key, val); \
+ my_setenv(key, SvPVX(sv)); \
}
#define mp_SetEnv(key, val) \
If works fine for me. (Apache 1.3.9, mod_perl 1.21, Linux)
Andrei
On Tue, Nov 16, 1999 at 11:03:01AM -0500, Carl Tichler wrote:
> Hello,
>
> I have seen a series of previous posts on this problem in mod_perl. I am
> running Linux (Red Hat 6.0, kernel 2.2.5), Perl 5.00503 and mod_perl 1.21. My
> symptoms are that the PATH environment variable is corrupted in the Apache
> runtime (visible using cgi-bin), but NOT in anything executing through mod_perl
> (Apache::Registry). I would just like to know the status of tracing this bug,
> and any patches or testing I might do to help trace this.
>
> Carl Tichler
> [EMAIL PROTECTED]
--