CGI::Untaint::hex - validate as a hexadecimal value


CGI-Untaint documentation Contained in the CGI-Untaint distribution.

Index


Code Index:

NAME

Top

CGI::Untaint::hex - validate as a hexadecimal value

SYNOPSIS

Top

  my $id = $handler->extract(-as_hex => 'hexvalue');

DESCRIPTION

Top

This Input Handler verifies that it is dealing with a hexadecimal value.

AUTHOR

Top

Tony Bowden, <kasei@tmtm.com>.

COPYRIGHT

Top


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;