perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Harrison" <shado...@doublebagel.com>
Subject Embperl problem?
Date Tue, 08 Oct 2002 21:22:47 GMT
Hi!

I am having a small difficulty.

When a user loads a page it checks for certain conditions. If these
conditions are not met, it redirects the user with this code:

[- $redirecturl = $ENV{HTTP_HOST} . $ENV{REQUEST_URI} -]

[- $http_headers_out{'Location'} =
"http://whatever/script2.embperl?redirect=http://$redirecturl" -]

The problem is that if the documented was requested with a query string,
and the query string had multiple parameters, for example:

http://whatever/script1.embperl?cat=1&jesus=2, when it redirects it to
script2, with this URL Format:
http://whatever/script2.embperl?redirect=http://whatever/script1.embperl
?cat=1&jesus=2, embperl seems to get confused? And $fdat{redirect} is
empty on script 2?

Justin


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message