/usr/share/perl5/CGI/Untaint/hex.pm is in libcgi-untaint-perl 1.26-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | package CGI::Untaint::hex;
use strict;
use base 'CGI::Untaint::object';
sub _untaint_re {
qr/^\s*([abcdef1234567890]+)\s*$/i
}
=head1 NAME
CGI::Untaint::hex - validate as a hexadecimal value
=head1 SYNOPSIS
my $id = $handler->extract(-as_hex => 'hexvalue');
=head1 DESCRIPTION
This Input Handler verifies that it is dealing with a hexadecimal
value.
=head1 AUTHOR
Tony Bowden, E<lt>kasei@tmtm.comE<gt>.
=head1 COPYRIGHT
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.
=cut
1;
|