| CGI-Untaint documentation | Contained in the CGI-Untaint distribution. |
CGI::Untaint::hex - validate as a hexadecimal value
my $id = $handler->extract(-as_hex => 'hexvalue');
This Input Handler verifies that it is dealing with a hexadecimal value.
Tony Bowden, <kasei@tmtm.com>.
Copyright (C) 2001 Tony Bowden. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| CGI-Untaint documentation | Contained in the CGI-Untaint distribution. |
package CGI::Untaint::hex; use strict; use base 'CGI::Untaint::object'; sub _untaint_re { qr/^\s*([abcdef1234567890]+)\s*$/i }
1;