API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JFilterInput::__construct | ( | $ | tagsArray = array() , |
$ | attrArray = array() , |
||
$ | tagsMethod = 0 , |
||
$ | attrMethod = 0 , |
||
$ | xssAuto = 1 |
||
) |
Constructor for inputFilter class. Only first parameter is required.
protected
array | $tagsArray | list of user-defined tags |
array | $attrArray | list of user-defined attributes |
int | $tagsMethod | WhiteList method = 0, BlackList method = 1 |
int | $attrMethod | WhiteList method = 0, BlackList method = 1 |
int | $xssAuto | Only auto clean essentials = 0, Allow clean blacklisted tags/attr = 1 |
JFilterInput::_cleanAttributes | ( | $ | attrSet | ) |
Internal method to strip a tag of certain attributes
protected
array | $attrSet | Array of attribute pairs to filter |
Références $i, checkAttribute(), et elseif.
JFilterInput::_cleanTags | ( | $ | source | ) |
Internal method to strip a string of certain tags
protected
string | $source | Input string to be 'cleaned' |
Références $i.
JFilterInput::_decode | ( | $ | source | ) |
Try to convert to plaintext
protected
string | $source |
Références $k.
JFilterInput::_remove | ( | $ | source | ) |
Internal method to iteratively remove all unwanted tags and attributes
protected
string | $source | Input string to be 'cleaned' |
JFilterInput::checkAttribute | ( | $ | attrSubSet | ) | [static] |
Function to determine if contents of an attribute is safe
array | $attrSubSet | A 2 element array for attributes name,value |
Référencé par _cleanAttributes(), TableWeblink::check(), et TableContact::check().
JFilterInput::clean | ( | $ | source, |
$ | type = 'string' |
||
) | [static] |
Method to be called by another php script. Processes for XSS and specified bad code.
public
mixed | $source | Input string/array-of-string to be 'cleaned' |
string | $type | Return type for the variable (INT, FLOAT, BOOLEAN, WORD, ALNUM, CMD, BASE64, STRING, ARRAY, PATH, NONE) |
Références $lang, $type, getInstance(), et JFactory::getLanguage().
Référencé par iLink::__construct(), WeblinksModelCategory::_buildQuery(), JInstallerLanguage::_install(), JEditor::_loadEditor(), JTableMenuTypes::check(), TemplatesController::editTemplate(), JSessionStorage::getInstance(), JRegistryFormat::getInstance(), JApplicationHelper::getPath(), JSite::getTemplate(), JAdministrator::getTemplate(), JInstallerTemplate::install(), JInstallerPlugin::install(), JInstallerModule::install(), JInstallerComponent::install(), JToolBar::loadButtonType(), JParameter::loadElement(), mosLoadComponent(), plgSystemRemember::onAfterInitialise(), TemplatesController::publishTemplate(), JDocumentHTML::render(), JDocumentError::render(), et SearchController::search().
& JFilterInput::getInstance | ( | $ | tagsArray = array() , |
$ | attrArray = array() , |
||
$ | tagsMethod = 0 , |
||
$ | attrMethod = 0 , |
||
$ | xssAuto = 1 |
||
) | [static] |
Returns a reference to an input filter object, only creating it if it doesn't already exist.
This method must be invoked as:
$filter = & JFilterInput::getInstance();
array | $tagsArray | list of user-defined tags |
array | $attrArray | list of user-defined attributes |
int | $tagsMethod | WhiteList method = 0, BlackList method = 1 |
int | $attrMethod | WhiteList method = 0, BlackList method = 1 |
int | $xssAuto | Only auto clean essentials = 0, Allow clean blacklisted tags/attr = 1 |
Référencé par JRequest::_cleanVar(), clean(), mosDBTable::filter(), et mosGetParam().
JFilterInput::$attrArray |
JFilterInput::$attrBlacklist = array ('action', 'background', 'codebase', 'dynsrc', 'lowsrc') |
JFilterInput::$attrMethod |
JFilterInput::$tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml') |
JFilterInput::$tagsArray |
JFilterInput::$tagsMethod |
JFilterInput::$xssAuto |