blob: 0e9f06e877915587f71665882edae73174f56281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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: https://metacpan.org/release/Data-Validate-URI
|