[HOME] [NSRG] [インフラ] [fml4] [fml8] [北海道] [おすすめの本] Powered by NetBSD and [nuinui.net] .

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 ... ;}

[HOME] [NSRG] [インフラ] [fml4] [fml8] [北海道] [おすすめの本] Powered by NetBSD and [nuinui.net] .
Copyright (C) 1993-2017 Ken'ichi Fukamachi mail:< fukachan at fml.org >