Re: 'var' instead of var ... (getting crazy)

1999-12-16 Thread Andrea Brugiolo

On Wed, Dec 15, 1999 at 09:10:47PM -0400, Eric L. Brine wrote:
> 
> > the [query_string (url_params)] usually reads this query_string in 
> > correctly, like this:
> > record=32&lang=it
> > BUT, SOMETIMES (random?) query_string is read
> > like:
> > 'record=32&lang=it'
> > Where could my error be?
> 
> Do you have any mod_perl handlers that work at an earlier phase of the
> request? Maybe they add the quotes by accident. Is the requested proxied
> from a front-end or is mod_rewrite used? The quotes may be introduced
> there by accident.

Well (if I understand all what you say :): i surely do NOT use
mod_rewrite; the  query_string directly  comes from  the other
script, which is instructed to do a simple redirect:

...
$uri = "$VIEWURL?record=$key;lang=$lang";
print $query->redirect($uri);

But  it  doesn't  (always)  understand  it,  as  i  told  you,
expecially just  after I  restart Apache  (after some  hits it
begins to  behave better, but  there is not  guarantee anyway,
for all the session).

Thank you,
Andrea

   Andrea Brugiolo University of Padova
   C.A.B. Inter Library Center tel +39 049 8273673, fax +39 049 8273651
   Inter Department Library of Psychology   tel +39 049 8276477
   [EMAIL PROTECTED]



'var' instead of var ... (getting crazy)

1999-12-15 Thread Andrea Brugiolo

Dear Folks,

a kind of weird problem is making me crazy:

i wrote  two scripts, all under  mod_perl and they seem  to be
ok.  One calls  the other  one  and passes  some arguments  to
it  through the  query_string (url_params);  well, the  latter
usually reads this query_string in correctly, like this:

record=32&lang=it

as i  can see  calling $query->query_string(),  having defined
$query as a "new CGI" (CGI.pm).
So far so good, BUT,  SOMETIMES (random?) query_string is read
like:

'record=32&lang=it'

which makes the script crash  because in this case $language =
$query->url_param('lang') comes  out to  be "it'",  instead of
"it", (unless  i write $language =~  s/'// , of course,  but i
refuse  to!), and  my script  is instructed  not to  deal with
"it'" language...! 8|

More: this behaviour --a variable  read as "'name'" instead of
"name"-- doesn't only happen with query string params but also
with other variables, rather often, like $query->remote_host()
or whatever you like...

Where could my (possibly idiotic) error be?

Finally, I  can't understand if  it's a modperl's  (?) problem
(PerlWarns  is  On  but  _nothing_ is  printed)  or  rather  a
CGI.pm's strange  behaviour, so I  hope not to bother  you too
much (i apologize).

Thank you very much!

Andrea Brugiolo

   Andrea Brugiolo University of Padova
   C.A.B. Inter Library Servicetel +39 049 8273673, fax +39 049 8273651
   Inter Department Library of Psychology   tel +39 049 8276477
   http://bibliomedia.psy.unipd.it[EMAIL PROTECTED]