| 1 | package CGI::Untaint::hex; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use base 'CGI::Untaint::object'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 0 | ▶ | sub _untaint_re { |
|
Subroutine
_untaint_re: not called CC=1 SCAR=6.9
| |||
| 7 | 0 | qr/^\s*([abcdef1234567890]+)\s*$/i | |
| 8 | } | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | CGI::Untaint::hex - validate as a hexadecimal value | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | my $id = $handler->extract(-as_hex => 'hexvalue'); | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | This Input Handler verifies that it is dealing with a hexadecimal | ||
| 21 | value. | ||
| 22 | |||
| 23 | =head1 AUTHOR | ||
| 24 | |||
| 25 | Tony Bowden, E<lt>kasei@tmtm.comE<gt>. | ||
| 26 | |||
| 27 | =head1 COPYRIGHT | ||
| 28 | |||
| 29 | Copyright (C) 2001 Tony Bowden. All rights reserved. | ||
| 30 | |||
| 31 | This module is free software; you can redistribute it and/or modify | ||
| 32 | it under the same terms as Perl itself. | ||
| 33 | |||
| 34 | =cut | ||
| 35 | |||
| 36 | 1 | 1; | |