Hah! I encoded it and it now works!
Thank you! > -----Original Message----- > From: Kee Hinckley [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 08, 2002 6:26 PM > To: Justin Harrison > Cc: [EMAIL PROTECTED] > Subject: Re: Embperl problem? > > > At 5:22 PM -0400 10/8/02, Justin Harrison wrote: > >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" -] > > You are going to want to url encode $redirecturl to do that safely. > Something like: > > SWC::WebUtil::RedirectTemp("/login.html?redirect=" . > uri_escape($ENV{REQUEST_URI}, '^-A-Za-z0-9./_')); > > -- > > Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ > > I'm not sure which upsets me more: that people are so > unwilling to accept responsibility for their own actions, or > that they are so eager to regulate everyone else's. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
