Restrict Input Data

fml 8 tutorial
Prev |  | Next

# Chapter 40. Restrict Input Data

fml8 checks the input by regular expression FML::Restriction class provides.

# Overview: Checks Of Input Data

## Restriction For Article Posting

Restrictions for article are ambiguous or too restrictive. In fact FML::Restriction class does not provide restriction rules for article posting.

Instead FML::Filter filter system checks each line of content.

## Restrictions For Command Mail

FML::Process::Command class parses each line of the command mail and checks the input by regular expressions FML::Restriction::Command provides. If the check is passed, fml8 calls FML::Command::{User,Admin}::COMMAND at the next step.

## CGI

CGI programs can receive the input from HTTP via only safe_param_XXX() method.

It is expected that safe_param_*() and try_cgi_*() returns the safe value.

These safe_param_XXX() functions checks the input by regular expressions FML::Restriction::CGI provides (FML::Restriction::CGI inherits FML::Restriction::Base).

## makefml / fml

CUI runs on the shell. It means he/she who runs CUI has priviledge to log in the mailing list server. So it does not check the input.

Each module checks the input independetly in that case though no checks by FML::Restriction at the entrance. For example, "adduser" module checks whether the input address is valid or not even in the case of CUI. These restrictions are dependent command specific modules. These are applied even in the case of CUI.

Prev | Home | Next
Recipes | Up | FML::Restriction Class

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