Hi all,

I'm recording a url at the beginning of an app to restore the
entrance url:

sub set_referer {
        my $self = shift;
        if ($self->{R}) {
                require Apache::Cookie;
                
                my $cookie = Apache::Cookie->new($self->{R},
                -name    =>  "REFERER",
                -value   =>  $self->{R}->header_in('Referer'),
                -expires =>  '2d',
                -domain  =>  ".$NFN::sites{$ENV{SITE}}{domain}",
                -path    =>  '/'
                );
                $cookie->bake;
        }
        
}


Which stores the cookie portion like so:

REFERER=http://www.newsfactor.com/xxxxx.pl%3faction=reply_form_html&board=nfntalkback&id=3288


However when I pull this back in with Apache::Cookie->fetch,
the data then reads:

http://www.newsfactor.com/xxxxx.pl?action=reply_form_html


Apache::Cookie seems to be stripping out the portion after the first 
ampersand.

Anybody know what do do here?

Thanks in advance,


-- 
--
Daniel Bohling
NewsFactor Network

Reply via email to