[HOME] [研究室] [ソフトウエア] [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] [研究室] [ソフトウエア] [fml4] [fml8] [北海道] Powered by NetBSD and [nuinui.net] .
Copyright (C) 1993-2018 Ken'ichi Fukamachi mail:< fukachan at fml.org >