Re: how to turn on taint checking

2003-11-07 Thread Stas Bekman
Joshua N Pritikin wrote: [...] For a quick work-around, does anyone know how to tell perl that data is tainted? Looks like you need this module: http://search.cpan.org/~phoenix/Taint-0.09/Taint.pm __ Stas BekmanJAm_pH -

Re: how to turn on taint checking

2003-11-07 Thread Geoffrey Young
use Scalar::Util qw(tainted); # included with perl 5.8.x This works correctly: warn "path".tainted($ENV{PATH}); In fact, everything in %ENV is tainted except for GATEWAY_INTERFACE and MOD_PERL. sounds right. It looks like a bug in CGI::Simple in _parse_multipart or _add_param. if those mod

Re: Problem with startup file

2003-11-07 Thread John Michael
The problem was caused from trying to use an old modperl startup file on modperl 2.0. Cya   JM

Re: Problem with startup file

2003-11-07 Thread Stas Bekman
John Michael wrote: I'm getting this error while trying to start apache with my perl startup file. I doubt this has anything to do with mod_perl, try to run the same under mod_cgi. Looks like CGI::Carp has a bug redefining Carp. I think Lincoln has mentioned that he revamped that code and he post

Re: how to turn on taint checking

2003-11-07 Thread Joshua N Pritikin
On Fri, Nov 07, 2003 at 10:18:45PM -0500, Geoffrey Young wrote: > >> PerlSwitches -T > > > >That's the right way. > > I'm not entirely sure, but IIRC, if you run a section or > PerlLoadModule before PerlSwitches its too late to specify taint mode. I > might be wrong, but it's worth checking.

Re: how to turn on taint checking

2003-11-07 Thread Geoffrey Young
you will get an error that PerlSwitches are ignored: Syntax error on line 104 of /home/stas/apache.org/mp2-cvs/t/conf/httpd.conf: mod_perl is already running, too late for PerlSwitches so there can be no confusion about it. cool. probably from Taint.pm (whose code is quite interesting if you t

Re: how to turn on taint checking

2003-11-07 Thread Stas Bekman
Geoffrey Young wrote: My apache2.conf contains: PerlSwitches -T That's the right way. I'm not entirely sure, but IIRC, if you run a section or PerlLoadModule before PerlSwitches its too late to specify taint mode. I might be wrong, but it's worth checking. It goes like this. There are s

I got it.

2003-11-07 Thread John Michael
Thanks, But I got it working. JM  

Problem with startup file

2003-11-07 Thread John Michael
I'm getting this error while trying to start apache with my perl startup file.   ##   String found where operator expected at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Cwd.pm line 373, near "carp "stat($start): $!""    (Do you need to predeclare carp?)String found

Re: how to turn on taint checking

2003-11-07 Thread Geoffrey Young
My apache2.conf contains: PerlSwitches -T That's the right way. I'm not entirely sure, but IIRC, if you run a section or PerlLoadModule before PerlSwitches its too late to specify taint mode. I might be wrong, but it's worth checking. warn tainted(param('foo')); # false for any given

Re: how to turn on taint checking

2003-11-07 Thread Stas Bekman
Joshua N Pritikin wrote: Hi! My setup is really simple, and because of this, I can't figure out what is going wrong. I am running: Apache/2.0.47 (Debian GNU/Linux) mod_perl/1.99_10 Perl/v5.8.1 My apache2.conf contains: PerlSwitches -T That's the right way. SetHandler perl-script P

how to turn on taint checking

2003-11-07 Thread Joshua N Pritikin
Hi! My setup is really simple, and because of this, I can't figure out what is going wrong. I am running: Apache/2.0.47 (Debian GNU/Linux) mod_perl/1.99_10 Perl/v5.8.1 My apache2.conf contains: PerlSwitches -T SetHandler perl-script PerlResponseHandler OHL::CGI My CGI script

Re: apache2 could not start

2003-11-07 Thread Randy Kobes
On Fri, 7 Nov 2003 [EMAIL PROTECTED] wrote: > Randy, > > I downloaded the binary bundle of Apache2 with modperl > from uwinnipeg which was fine for Window 2000 but doesn't > work for Window XP. > > Do you have any idea what I should do to fix the problem such as > > The Apache2 service terminated

Re: $r->subprocess_env clean??

2003-11-07 Thread Stas Bekman
gerard uolaquetalestem wrote: Hi to comunity, i'm developing some scripts (handlers) that need (or that's what i think) to fill the ENV hash, so i can take the cookie data. Which mod_perl version are using? Always include at least that information in your questions. Can we summarize your problem

Re: Problem with Apache::Test

2003-11-07 Thread Stas Bekman
Geoffrey Young wrote: John Day wrote: I have been trying to install Apache::Test which is a pre-requisite for something else. But I get this message: *** result: NOK !!! You are running the test suite under user 'root'. Apache cannot spawn child processes as 'root', therefore we attempt to run

Re: Problem with Apache::Test

2003-11-07 Thread Geoffrey Young
John Day wrote: I have been trying to install Apache::Test which is a pre-requisite for something else. But I get this message: *** result: NOK !!! You are running the test suite under user 'root'. Apache cannot spawn child processes as 'root', therefore we attempt to run the test suite with use

[RELEASE CANDIDATE] Apache-Test-1.06

2003-11-07 Thread Geoffrey Young
a release candidate for Apache-Test 1.06 is now available. 1.06 is the version of Apache-Test that will ship with mod_perl 1.99_11. http://perl.apache.org/~geoff/Apache-Test-1.06-dev.tar.gz please take the time to excercise the candidate through all your existing applications that use Apache

[RELEASE CANDIDATE] mod_perl-1.99_11 RC1

2003-11-07 Thread Geoffrey Young
a release candidate for mod_perl 1.99_11 is now available for testing. note that 1.99_11 will be required for users running perl 5.8.2. please grab the candidate from http://perl.apache.org/~geoff/mod_perl-1.99_11-dev.tar.gz and report back successes or failures. when reporting failures, pl

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-07 Thread Geoffrey Young
I think this has to do with 'if (HAVE_APACHE_2_0_47) {'. May be the new api compress didn't end up in 2.0.47. apr_table_overlay was in 2.0.46 so 2.0.47 shouldn't be a problem. the only APR issue is apr_table_compress, which was introduced between 2.0.46 and 2.0.47. from modperl_apache_compat

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-07 Thread Stas Bekman
Stas Bekman wrote: Matisse Enzer wrote: [...] Please apply the patch at the bottom and send the ouput of: Alternatively use the cvs version, I've already committed that patch. __ Stas BekmanJAm_pH --> Just Another mod_

Problem with Apache::Test

2003-11-07 Thread John Day
I have been trying to install Apache::Test which is a pre-requisite for something else. But I get this message: *** result: NOK !!! You are running the test suite under user 'root'. Apache cannot spawn child processes as 'root', therefore we attempt to run the test suite with user 'nobody' (99:99

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-07 Thread Stas Bekman
Matisse Enzer wrote: Anyone have some suggestions for me? -8<-- Start Bug Report 8<-- 1. Problem Description: apr/table..FAILED tests 20-21 Please apply the patch at the bottom and send the ouput of: t/TEST -v apr/table I think this h

Re: mod_perl large file support

2003-11-07 Thread Stas Bekman
Adam Griffiths wrote: In terms of mod_perl is it an error to have Perl compiled with LFS but not Apache, or the other way around? In otherwords should LFS for the two programs always mach? Or should mod_perl aplications be able to handle a mismatch in LFS between Apache and Perl? I guess I've faile

mp2 - make test - apr/table...FAILED tests 20-21

2003-11-07 Thread Matisse Enzer
Anyone have some suggestions for me? -8<-- Start Bug Report 8<-- 1. Problem Description: apr/table..FAILED tests 20-21 2. Used Components and their Configuration: *** mod_perl version 1.9910 *** using lib/Apache/BuildConfig.pm *** Make

Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04

2003-11-07 Thread Leo Lapworth
Hi Stefano, On Fri, Nov 07, 2003 at 06:11:48PM +0100, Stefano Ciancio wrote: > I have donwloaded your module and testing it. > > First of all a question. The AuthenNTLM module setted an env variable > REMOTE_USER to domain\\username value. > Set the new module this variable? Ahh, this wasn't som

apache2 could not start

2003-11-07 Thread HLiu
Randy, I downloaded the binary bundle of Apache2 with modperl from uwinnipeg which was fine for Window 2000 but doesn't work for Window XP. Do you have any idea what I should do to fix the problem such as The Apache2 service terminated with service-specific error 1 (0xl). The more detailed inf

Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04

2003-11-07 Thread Stefano Ciancio
Hi Leo, I have donwloaded your module and testing it. First of all a question. The AuthenNTLM module setted an env variable REMOTE_USER to domain\\username value. Set the new module this variable? Thanks, Stefano On Fri, 7 Nov 2003 14:01:13 + Leo Lapworth <[EMAIL PROTECTED]> wrote:

Re: xml and mod_perl

2003-11-07 Thread Perrin Harkins
On Thu, 2003-11-06 at 19:36, Dustin Whitney wrote: > I am using Mason. Here are some lines from my httpd.conf file that are > probably relevant: > > > Alias /perl/ /var/www/perl/ > PerlSetVar MasonAllowGlobals $swit_user > PerlInitHandler "Apache::StatINC" Try taking out Stat

Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04

2003-11-07 Thread Shannon Eric Peevey
Fraid I haven't a clue, not used mod_perl2 yet, it requires Apache::Request and Apache::Cookie, can't remember if they are abailable yet. Leo Actually, I am looking into it now. (I know that your module as it stands only works with mp1). But, I am going to download the libapreq 2 release an

[Fwd: Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04]

2003-11-07 Thread Shannon Eric Peevey
Original Message Subject: Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04 Date: Fri, 7 Nov 2003 15:07:57 + From: Leo Lapworth <[EMAIL PROTECTED]> Reply-To: Leo Lapworth <[EMAIL PROTECTED]> To: Stefano Ciancio <[EMAIL PROTECTED]> CC: Shannon Eric Peevey <[EMAIL PROTECTED]> R

[Fwd: Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04]

2003-11-07 Thread Shannon Eric Peevey
Original Message Subject: Re: [ANNOUNCE] Apache::AuthCookieNTLM 0.04 Date: Fri, 7 Nov 2003 15:31:54 +0100 From: Stefano Ciancio <[EMAIL PROTECTED]> Organization: Italia On Line To: Leo Lapworth <[EMAIL PROTECTED]> CC: Shannon Eric Peevey <[EMAIL PROTECTED]> References: <[

[ANNOUNCE] Apache::AuthCookieNTLM 0.04

2003-11-07 Thread Leo Lapworth
I've just uploaded Apache::AuthCookieNTLM 0.04 to CPAN, it's available from http://leo.cuckoo.org/projects/ if you can't wait for it to be processed. I'll consider it finished (ie. working) unless I hear from anyone :) Cheers Leo -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info:

Re: mod_perl large file support

2003-11-07 Thread Adam Griffiths
In terms of mod_perl is it an error to have Perl compiled with LFS but not Apache, or the other way around? In otherwords should LFS for the two programs always mach? Or should mod_perl aplications be able to handle a mismatch in LFS between Apache and Perl? "Stas Bekman" <[EMAIL PROTECTED]> wrote

$r->subprocess_env clean??

2003-11-07 Thread gerard uolaquetalestem
Hi to comunity, i'm developing some scripts (handlers) that need (or that's what i think) to fill the ENV hash, so i can take the cookie data. The cookie i read contains the ID and the PASS, which i will test with user archive in order to give he/she "permission" to do some things. The probl