Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Untainting cookies

by MeowChow (Vicar)
on Apr 11, 2001 at 20:18 UTC ( [id://71720]=note: print w/replies, xml ) Need Help??


in reply to Re: Untainting cookies
in thread Untainting cookies

How about just tr'ing the initial Base64 ID like so:
$id =~ tr|+/=|___|; # or $id =~ tr|+/=|000|;
You would lose just a few bits of randomness (acceptable in this application), but would be left with a shorter ID that's an easy match with a /\w/.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://71720]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found