fml 8 tutorial
Prev | Chapter 40. Restrict Input Data | Next

# FML::Restriction Class

ACLs for the input data and commands are found at FML::Restriction class.

For example, CGI modules use FML::Restriction::CGI class to check if the input data matches the proper regular expression.

Though FML::Restriction inherits FML::Restriction::Base class, fundamentally each module should use FML::Restriction as object composition. For example, use in the following way:

    use FML::Restriction::CGI;
    $safe = new FML::Restriction::CGI;
    my $allowed_regexp = $safe->param_regexp();

    if ($value =~ /^$allowed_regexp{$key}$) { ... ok, do something ... ;}

Prev | Home | Next
Restrict Input Data | Up | How CGI Restricts The Input

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.