Difference between revisions of "JFilterInput::clean"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (preparing for archive only) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
=={{JVer|11.1}} JFilterInput::clean== | =={{JVer|11.1}} JFilterInput::clean== | ||
===Description=== | ===Description=== | ||
− | Method to be called by another php script. | + | Method to be called by another php script. Processes for XSS and specified bad code. |
+ | |||
+ | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function clean ( |
+ | $source | ||
+ | $type='string' | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 30: | Line 30: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' | |
+ | * '''Defined''' on line 131 of libraries/joomla/filter/filterinput.php | ||
− | |||
− | |||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JFilterInput::clean source code''' on [[jplatform:filter/filterinput.php#cl-123|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JFilterInput|JFilterInput]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filter|Filter]] | |
− | * | + | * [[API17:JFilterInput::clean|Other versions of JFilterInput::clean]] |
− | * [[JFilterInput::clean|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFilterInput::clean | category=JFilterInput::clean | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:02, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JFilterInput::clean[edit]
Description[edit]
Method to be called by another php script. Processes for XSS and specified bad code.
public function clean (
$source
$type='string'
)
Parameter | Type | Default | Description |
---|---|---|---|
$source | |||
$type | 'string' |
- Returns
- Defined on line 131 of libraries/joomla/filter/filterinput.php
See also[edit]
- JFilterInput::clean source code on BitBucket
- Class JFilterInput
- Subpackage Filter
- Other versions of JFilterInput::clean
User contributed notes[edit]
Code Examples[edit]