Re: Santitizing errors with mod_perl

2001-07-28 Thread Ged Haywood
Hi there, On Sat, 28 Jul 2001, John Buwa wrote: > Thanks all for the terrific answers and help. It is actually working now!? > What did i do you ask? Not a thing, [snip] > ... I usually make a sighup to the test server after a change in the > scripts maby this was not enough to recompiile my cha

Re: Santitizing errors with mod_perl

2001-07-28 Thread John Buwa
Hello Everyone, Thanks all for the terrific answers and help. It is actually working now!? What did i do you ask? Not a thing, hmmm strange. My modperl apache server is not in production, i set it to run on port at the same time as my normal apache server, and i am taking my code changing th

Re: Santitizing errors with mod_perl

2001-07-28 Thread Joachim Zobel
At 03:37 27.07.01 -0500, you wrote: >I sanitize all my input in my scripts to only allow chars i want allowed. My >working lines before using modperl and for some reason kick out error with >mod perl are as follows: > >$user =~ s/[^$OK_CHARS]//go; >$pass =~ s/[^$OK_CHARS]//go; > >When an account i

Re: Santitizing errors with mod_perl

2001-07-27 Thread John Buwa
here is the value $OK_CHARS='-a-zA-Z0-9_.@ '; John > perhaps the escaping is not getting done > properly. is there a '[' in $OK_CHARS? can we > see what the definition of $OK_CHARS looks like?

Re: Santitizing errors with mod_perl

2001-07-27 Thread ___cliff rayman___
perhaps the escaping is not getting done properly. is there a '[' in $OK_CHARS? can we see what the definition of $OK_CHARS looks like? also, for debugging - print the value of $OK_CHARS on the line directly above the first substitution. this will tell us if it is getting stepped on somewhere b

Re: Santitizing errors with mod_perl

2001-07-27 Thread John Buwa
> Hi there, > > On Fri, 27 Jul 2001, John Buwa wrote: > > > $user =~ s/[^$OK_CHARS]//go; > > $pass =~ s/[^$OK_CHARS]//go; > [snip] > > [error] Unmatched [ before HERE mark in regex m/[ << HERE ^]/ at > > libwelcome.pl line 169. > > Hmmm. Your code says s/// not m//. Is this anywhere near line

Re: Santitizing errors with mod_perl

2001-07-27 Thread Ged Haywood
Hi there, On Fri, 27 Jul 2001, John Buwa wrote: > $user =~ s/[^$OK_CHARS]//go; > $pass =~ s/[^$OK_CHARS]//go; [snip] > [error] Unmatched [ before HERE mark in regex m/[ << HERE ^]/ at > libwelcome.pl line 169. Hmmm. Your code says s/// not m//. Is this anywhere near line 169? Is it in the fil

Santitizing errors with mod_perl

2001-07-27 Thread John Buwa
Hi there, Sorry about all these questions, i am really new to modperl and just trying to get it to work :( I sanitize all my input in my scripts to only allow chars i want allowed. My working lines before using modperl and for some reason kick out error with mod perl are as follows: $user =~