This module collects common URI validation routines to make input validation,

and untainting easier and more readable.

All functions return an untainted value if the test passes, and undef if it
fails. This means that you should always check for a defined status
explicitly. Don't assume the return will be true.

The value to test is always the first (and often only) argument.

There are a number of other URI validation modules out there as well.
This one focuses on being fast, lightweight, and relatively 'real-world'.
i.e. it's good if you want to check user input, and don't need to parse
out the URI/URL into chunks.

Right now the module focuses on HTTP URIs, since they're arguably the most
common.

WWW: http://search.cpan.org/dist/Data-Validate-URI

PR:		ports/119264
Submitted by:	Tuc <freebsd-ports at t-b-o-h.net>
This commit is contained in:
Martin Wilke 2008-01-14 11:42:27 +00:00
parent a7a74e9753
commit 1a46e59ef1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205639
5 changed files with 66 additions and 0 deletions

View File

@ -696,6 +696,7 @@
SUBDIR += p5-Compress-LeadingBlankSpaces
SUBDIR += p5-DBIx-Class-HTMLWidget
SUBDIR += p5-Data-TreeDumper-Renderer-DHTML
SUBDIR += p5-Data-Validate-URI
SUBDIR += p5-FAQ-OMatic
SUBDIR += p5-FCGI-Async
SUBDIR += p5-FCGI-ProcManager

View File

@ -0,0 +1,27 @@
# New ports collection makefile for: www/p5-Data-Validate-URI
# Date created: 02 January 2008
# Whom: Tuc <freebsd-ports@t-b-o-h.net>
#
# $FreeBSD$
#
PORTNAME= Data-Validate-URI
PORTVERSION= 0.04
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= Data
PKGNAMEPREFIX= p5-
MAINTAINER= freebsd-ports@t-b-o-h.net
COMMENT= Common data validation methods for URIs
BUILD_DEPENDS= ${SITE_PERL}/Data/Validate/Domain.pm:${PORTSDIR}/dns/p5-Data-Validate-Domain \
${SITE_PERL}/Data/Validate/IP.pm:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP
RUN_DEPENDS= ${SITE_PERL}/Data/Validate/Domain.pm:${PORTSDIR}/dns/p5-Data-Validate-Domain \
${SITE_PERL}/Data/Validate/IP.pm:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP
PERL_CONFIGURE= yes
MAN3= Data::Validate::URI.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Data-Validate-URI-0.04.tar.gz) = 1cbada5653a33e496e07b2c3c70c80ae
SHA256 (Data-Validate-URI-0.04.tar.gz) = 5b0acd34dd08f7e6db6b5c76c0cdf26cece3729ae06a4ff1da7b86e985b5035a
SIZE (Data-Validate-URI-0.04.tar.gz) = 10313

View File

@ -0,0 +1,18 @@
This module collects common URI validation routines to make input validation,
and untainting easier and more readable.
All functions return an untainted value if the test passes, and undef if it
fails. This means that you should always check for a defined status
explicitly. Don't assume the return will be true.
The value to test is always the first (and often only) argument.
There are a number of other URI validation modules out there as well.
This one focuses on being fast, lightweight, and relatively 'real-world'.
i.e. it's good if you want to check user input, and don't need to parse
out the URI/URL into chunks.
Right now the module focuses on HTTP URIs, since they're arguably the most
common.
WWW: http://search.cpan.org/dist/Data-Validate-URI

View File

@ -0,0 +1,17 @@
%%SITE_PERL%%/Data/Validate/URI.pm
%%SITE_PERL%%/auto/Data/Validate/URI/new.al
%%SITE_PERL%%/auto/Data/Validate/URI/is_uri.al
%%SITE_PERL%%/auto/Data/Validate/URI/is_http_uri.al
%%SITE_PERL%%/auto/Data/Validate/URI/is_https_uri.al
%%SITE_PERL%%/auto/Data/Validate/URI/is_web_uri.al
%%SITE_PERL%%/auto/Data/Validate/URI/_split_uri.al
%%SITE_PERL%%/auto/Data/Validate/URI/autosplit.ix
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/URI/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate/URI
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Validate
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/auto/Data/Validate/URI
@dirrmtry %%SITE_PERL%%/auto/Data/Validate
@dirrmtry %%SITE_PERL%%/auto/Data
@dirrmtry %%SITE_PERL%%/Data