Retain Spaces in field value



Morning,

I have a value I'm trying to pass from a form in a cookie. The first
time it's passed it shows up as "North Hall A" but when a user is sent
back to the page the value changes to "North"

I set the cookie like:

my $cookie_id = param('Building');


my $cookie = cookie(-name => 'Building',
-value => $cgi->param('Building'),
-expires => '+3d');

and then reference it like $cookie_id. In PHP I know I can use
urlencode to preserve the spaces but I can't find out how perl does it.

Thanks for any help.

AJ

.



Relevant Pages

  • Re: Retain Spaces in field value
    ... I have a value I'm trying to pass from a form in a cookie. ... time it's passed it shows up as "North Hall A" but when a user is sent ... I think you mean Perl, ...
    (perl.beginners)
  • RE: IkonBoard v3.1.1: arbitrary command execution
    ... Subject: IkonBoard v3.1.1: arbitrary command execution ... There is a flaw in the Perl code that cleans up user input before ... allowing an attacker to evaluate arbitrary Perl and hence run arbitrary ... The flaw is in the code that cleans up the value of the 'lang' cookie, ...
    (Vuln-Dev)
  • IkonBoard v3.1.1: arbitrary command execution
    ... Vendor Fix: None available ... IkonBoard is a comprehensive web bulletin board ... There is a flaw in the Perl code that cleans up user input before ... The flaw is in the code that cleans up the value of the 'lang' cookie, ...
    (Bugtraq)
  • Re: Unix filename conversion app?
    ... > You can even view the Perl source code on that site and knock up ... content into a format that can readily be pasted back into the Web ... (Does anyone know what format 'wget' expects cookie ... converting from an existing browser?) ...
    (comp.sys.acorn.apps)
  • Re: [PHP] Cookie Trouble: getting the information back out...
    ... for ASP, Perl, I suspect Java and most other languages. ... There might be a language that sets a cookie when you assign a value ... Unless I was doing something differently when I originally wrote this in PERL I don't recall having this issue. ...
    (php.general)