go ahead... be a heretic | |
PerlMonks |
Re: Re: Untainting cookiesby MeowChow (Vicar) |
on Apr 11, 2001 at 20:18 UTC ( [id://71720]=note: print w/replies, xml ) | Need Help?? |
How about just tr'ing the initial Base64 ID like so:
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
In Section
Seekers of Perl Wisdom
|
|