Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Untainting cookiesby traveler (Parson) |
on Apr 11, 2001 at 19:15 UTC ( [id://71693]=note: print w/replies, xml ) | Need Help?? |
Forgive me if I'm misunderstanding, but you seem to be trying to
untaint and semi-validate the cookie at once. Try untainting
(and ignoring what is in the cookie) then validate it against a list
of known cookies or (as you're trying to do now) a "syntax". I agree with the others about cookie content, too. Use hex or something easier to deal with than base64. I think base64 is a bit of overkill for what you seem to be doing. traveler
In Section
Seekers of Perl Wisdom
|
|