JMailHelper::cleanAddress: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Verifies that an email address does not have any extra headers injected into it. | Verifies that an email address does not have any extra headers injected into it. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function cleanAddress ($address) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 22: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' string|false email address string or boolean false if injected headers are present. | |||
string|false email address string or boolean false if injected headers are present. | * '''Defined''' on line 85 of libraries/joomla/mail/helper.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/mail/helper.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JMailHelper::cleanAddress source code''' on [[jplatform:mail/helper.php#cl-77|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JMailHelper|JMailHelper]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Mail|Mail]] | |||
* | * [[API17:JMailHelper::cleanAddress|Other versions of JMailHelper::cleanAddress]] | ||
* [[JMailHelper::cleanAddress|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JMailHelper::cleanAddress | category=JMailHelper::cleanAddress | ||
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 03:25, 25 March 2017
JMailHelper::cleanAddress
Description
Verifies that an email address does not have any extra headers injected into it.
public static function cleanAddress ($address)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $address | string | email address. |
- Returns string|false email address string or boolean false if injected headers are present.
- Defined on line 85 of libraries/joomla/mail/helper.php
- Since

See also
JMailHelper::cleanAddress source code on BitBucket
Class JMailHelper
Subpackage Mail- Other versions of JMailHelper::cleanAddress
User contributed notes
Code Examples